Skip to content

Instantly share code, notes, and snippets.

@architjn
Created February 1, 2019 10:30
Show Gist options
  • Save architjn/22fe01b1e0f15c5be8c9cd8962aa35a6 to your computer and use it in GitHub Desktop.
Save architjn/22fe01b1e0f15c5be8c9cd8962aa35a6 to your computer and use it in GitHub Desktop.
server {
listen 800;
server_name dashboard;
location / {
proxy_pass http://localhost:8000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
server {
listen 0.0.0.0:80;
server_name landing;
location / {
proxy_pass http://localhost:7000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment