Skip to content

Instantly share code, notes, and snippets.

@nutzhub
Created October 27, 2014 05:26
Show Gist options
  • Save nutzhub/708420fba6e84e997535 to your computer and use it in GitHub Desktop.
Save nutzhub/708420fba6e84e997535 to your computer and use it in GitHub Desktop.
server {
listen 80;
server_name chat.dev.abctech-thailand.com ~.+\.chat\.dev\.abctech-thailand\.com$ ~.+\.chat\.int\.abctech-thailand\.com$ chat.abct.io;
location / {
proxy_pass http://meetv:8080/;
proxy_http_version 1.1;
proxy_redirect off;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Port 443;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
add_header Strict-Transport-Security max-age=31536000;
add_header X-Frame-Options DENY;
}
include /etc/nginx/robots.conf;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment