summarylogtreecommitdiffstats
path: root/chartdb.conf.example
blob: 8b21ba6fe58e5082013bd15959684966c25c05a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
server {
    listen       8080;
    listen  [::]:8080;
    server_name localhost;

    location / {
        root   /usr/share/webapps/chartdb;
        index  index.html index.htm;
        try_files  $uri $uri/ /index.html;
    }

    # Configuration
    # Uncomment and configure if you want runtime AI features
    location /config.js {
        default_type application/javascript;
        return 200 "window.env = {
            // OPENAI_API_KEY: \"KEY-HERE\",
            // OPENAI_API_ENDPOINT: \"ENDPOINT-HERE\",
            // LLM_MODEL_NAME: \"MODEL-HERE\",
            DISABLE_ANALYTICS: \"true\"
        };";
    }

    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   /usr/share/nginx/html;
    }
}