Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
server {
root /Users/peterbe/dev/MOZILLA/BALROG/balrog-ui/dist;
server_name balrog.prod;
proxy_set_header Host $host;
location ^~ /api/ {
proxy_pass http://127.0.0.1:9000;
break;
}
location / {
if (-f $request_filename/index.html) {
rewrite (.*) $1/index.html break;
}
if (-f $request_filename) {
break;
}
if (!-f $request_filename) {
rewrite (.*) /index.html break;
}
}
access_log /tmp/nginx.access.log combined;
error_log /tmp/nginx.error.log info;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.