Skip to content

Instantly share code, notes, and snippets.

@fedotxxl
Created June 18, 2019 15:43
Show Gist options
  • Save fedotxxl/78a2f621ac40146885cb0454c4117cc9 to your computer and use it in GitHub Desktop.
Save fedotxxl/78a2f621ac40146885cb0454c4117cc9 to your computer and use it in GitHub Desktop.
server {
listen 80;
server_name your-domain.com;
access_log /var/log/jj-dashboard/nginx.access.log;
error_log /var/log/jj-dashboard/nginx.error.log;
root /opt/adv/jj-dashboard-frontend/;
index index.html index.htm;
location / {
try_files $uri $uri/ /index.html;
}
location /api/ {
proxy_pass http://127.0.0.1:8785/;
proxy_set_header Host $host;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment