Created
October 15, 2019 02:46
-
-
Save hailiang-wang/b37f44d0c5977bb9b6c17fa8730e5bfe to your computer and use it in GitHub Desktop.
Nginx Configuration for 春松客服
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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