blob: d1fcfa3e7f29cf07bbc4223d3c2756860231c45e [file] [log] [blame]
server {
listen 80;
server_name localhost;
${SERVER_CONF}
location / {
root /usr/share/nginx/html;
index index.html;
try_files $uri /index.html;
}
location /api/ {
resolver ${DNS} valid=300s;
resolver_timeout 3s;
set $target "${DEVLAKE_ENDPOINT}";
rewrite /api/(.*) /$1 break;
proxy_send_timeout 10s;
proxy_read_timeout 10s;
proxy_pass http://$target;
}
location /grafana {
rewrite /grafana(.*)$ ${GRAFANA_ENDPOINT}$1;
}
}