All checks were successful
Build and Push to Registry / build-and-push (push) Successful in 51s
29 lines
828 B
Plaintext
Executable File
29 lines
828 B
Plaintext
Executable File
upstream backend {
|
|
server 127.0.0.1:3000;
|
|
}
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
server_name relay235.4nkweb.com;
|
|
client_max_body_size 200M;
|
|
access_log /var/log/nginx/rocket.chat.access.log;
|
|
error_log /var/log/nginx/rocket.chat.error.log;
|
|
ssl_certificate /etc/letsencrypt/live/relay235.4nkweb.com/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/relay235.4nkweb.com/privkey.pem;
|
|
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
|
|
|
|
location / {
|
|
proxy_pass http://backend;
|
|
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;
|
|
}
|
|
}
|
|
|