Last active
March 29, 2018 00:09
-
-
Save Nata01/9faf23f803fb50a9aa36d58b9c35df1f to your computer and use it in GitHub Desktop.
Angular nginx minimal config
This file contains 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
# File path: /etc/nginx/sites-available/default | |
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
root /home/ubuntu/ProjectBravo/smartschool/dist; | |
location /api { | |
proxy_redirect off; | |
proxy_pass http://localhost:8080; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header Authorization $http_authorization; | |
} | |
location / { | |
try_files $uri /index.html; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment