mirror of
https://github.com/vndangkhoa/Sys-Arc-Visl.git
synced 2026-04-05 01:17:57 +07:00
21 lines
777 B
Nginx Configuration File
21 lines
777 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
|
|
# Enable gzip compression
|
|
gzip on;
|
|
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
|
|
|
|
# Root directory for the app
|
|
location / {
|
|
root /usr/share/nginx/html;
|
|
index index.html index.htm;
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
|
|
# NOTE: Ollama proxy is NOT included by default to allow standalone operation.
|
|
# The app works with Browser AI (WebLLM/Transformers.js) without any external services.
|
|
#
|
|
# If you need to proxy requests to Ollama, either:
|
|
# 1. Set the Ollama URL directly in the app settings (e.g., http://your-nas-ip:11434)
|
|
# 2. Or mount a custom nginx.conf with your proxy configuration
|
|
}
|