Created
May 25, 2018 13:13
-
-
Save gambtho/1e052abe246380212eb8cafa23eb353c to your computer and use it in GitHub Desktop.
nginx default for spa (ssl terminated at lb)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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