Commit b8c97da1 authored by nanahira's avatar nanahira

nginx

parent 4482e9f7
Pipeline #3905 passed with stages
in 1 minute and 55 seconds
server {
listen 80;
listen 443 ssl http2;
server_name chat.momobako.com;
ssl_certificate certs/yuzurisa.com/fullchain.pem;
ssl_certificate_key certs/yuzurisa.com/privkey.pem;
if ($https != "on") {
return 301 https://$host$request_uri;
}
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always;
location / {
proxy_pass http://myrocketchat: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;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment