mirror of
https://github.com/chartdb/chartdb.git
synced 2026-01-05 19:29:55 -06:00
21 lines
463 B
Plaintext
21 lines
463 B
Plaintext
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
|
|
location / {
|
|
root /usr/share/nginx/html;
|
|
index index.html index.htm;
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
|
|
location /config.js {
|
|
default_type application/javascript;
|
|
return 200 "window.env = { OPENAI_API_KEY: \"$OPENAI_API_KEY\" };";
|
|
}
|
|
|
|
error_page 500 502 503 504 /50x.html;
|
|
location = /50x.html {
|
|
root /usr/share/nginx/html;
|
|
}
|
|
}
|