Skip to content

Instantly share code, notes, and snippets.

@gambtho
Created May 25, 2018 13:13
Show Gist options
  • Save gambtho/1e052abe246380212eb8cafa23eb353c to your computer and use it in GitHub Desktop.
Save gambtho/1e052abe246380212eb8cafa23eb353c to your computer and use it in GitHub Desktop.
nginx default for spa (ssl terminated at lb)
server {
listen 8080 default_server;
listen [::]:8080 default_server ipv6only=on;
# listen 443 default ssl;
# ssl_certificate /etc/nginx/certs/server.crt;
# ssl_certificate_key /etc/nginx/certs/server.key;
root /app/dist;
index index.html index.htm;
server_name _;
location / {
try_files $uri /index.html;
}
location /stats/nginx {
stub_status on;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment