Skip to content

Instantly share code, notes, and snippets.

@hailiang-wang
Created October 15, 2019 02:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hailiang-wang/b37f44d0c5977bb9b6c17fa8730e5bfe to your computer and use it in GitHub Desktop.
Save hailiang-wang/b37f44d0c5977bb9b6c17fa8730e5bfe to your computer and use it in GitHub Desktop.
Nginx Configuration for 春松客服
server {
listen 443 ssl;
server_name YOUR_URL;
root /usr/share/nginx/html;
client_max_body_size 100M;
ssl_certificate /certs/YOUR.cer;
ssl_certificate_key /certs/YOUR.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://YOUR_IP:8035;
}
location /socket.io { proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_http_version 1.1;
proxy_pass http://YOUR_IP:8036;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment