Skip to content

armgit / ODS

Public Imported from GitHub
0

ODS V3 Pre-Release: Public testing and refinement ahead of the official V3 launch. Turn your PC, Mac, or Linux box into a private AI server.

964 B
Raw Blame
worker_processes auto;
pid /tmp/nginx.pid;
error_log /dev/stderr warn;
events { worker_connections 512; }
http {
    include /etc/nginx/mime.types;
    default_type application/octet-stream;
    access_log /dev/stdout;
    sendfile on;
    client_body_temp_path /tmp/client_temp;
    proxy_temp_path /tmp/proxy_temp;
    fastcgi_temp_path /tmp/fastcgi_temp;
    uwsgi_temp_path /tmp/uwsgi_temp;
    scgi_temp_path /tmp/scgi_temp;
    server {
        listen 8080;
        root /usr/share/nginx/html;
        index index.html;
        location / { try_files $uri $uri/ /index.html; }
        # Public browser configuration must never contain an ODS gateway secret.
        location = /config.js {
            default_type application/javascript;
            add_header Cache-Control "no-store";
            return 200 'window.env = {OPENAI_API_KEY:"",OPENAI_API_ENDPOINT:"",LLM_MODEL_NAME:"",HIDE_CHARTDB_CLOUD:"true",DISABLE_ANALYTICS:"true"};';
        }
    }
}