1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/rocketchat/nginx.conf
2020-09-23 15:54:24 +08:00

30 lines
971 B
Nginx Configuration File

server {
listen 80;
server_name chat.easypi.pro;
return 301 https://$host$request_uri;
}
server {
listen 443;
server_name chat.easypi.pro;
ssl_certificate easypi.pro.crt;
ssl_certificate_key easypi.pro.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_session_timeout 1d;
ssl_session_cache shared:SSL:50m;
client_max_body_size 200M;
location / {
proxy_pass http://127.0.0.1:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $http_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 https;
proxy_set_header X-Nginx-Proxy true;
proxy_redirect off;
}
}