I am looking at setting up Chat+ on a server that will be using Nginx as the webserver.
I am looking at setting up Chat+ on a server that will be using Nginx as the webserver. Geeks, making the world a better place |
Just replace $VAR_SITE_CHAT_DOMAIN with your real domain and $VAR_SITE_DOMAIN with your main site domain where SSL certificate is installed. server {
listen 80;
server_name $VAR_SITE_CHAT_DOMAIN;
rewrite ^ https://$VAR_SITE_CHAT_DOMAIN$request_uri? permanent;
}
server {
listen 443 ssl;
server_name $VAR_SITE_CHAT_DOMAIN;
ssl on;
ssl_protocols SSLv2 TLSv1;
ssl_certificate /etc/letsencrypt/live/$VAR_SITE_DOMAIN/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/$VAR_SITE_DOMAIN/privkey.pem;
access_log /var/log/nginx/chat.access.log;
error_log /var/log/nginx/chat.error.log;
client_max_body_size 200M;
root /var/www/vhosts/mainsite/chat;
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-Forward-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forward-Proto $scheme;
proxy_set_header X-Nginx-Proxy true;
proxy_redirect off;
}
}
Rules → http://www.boonex.com/terms |
Thanks Alex, your help is appreciated. Geeks, making the world a better place |