1
0
mirror of https://github.com/chatopera/cosin.git synced 2025-06-20 22:46:59 +08:00
cosin/nginx/conf.d/default.conf
2019-11-06 11:29:32 +08:00

22 lines
644 B
Plaintext

server {
root /usr/share/nginx/html;
client_max_body_size 100M;
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://contact-center: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://contact-center:8036;
}
}