Skip to content

Instantly share code, notes, and snippets.

@Nata01
Last active March 29, 2018 00:09
Show Gist options
  • Save Nata01/9faf23f803fb50a9aa36d58b9c35df1f to your computer and use it in GitHub Desktop.
Save Nata01/9faf23f803fb50a9aa36d58b9c35df1f to your computer and use it in GitHub Desktop.
Angular nginx minimal config
# 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