Code in this video_RocketChat – Configure NGINX as a Reverse Proxy for RocketChat
############ ### ### Replace : ##### 192.168.1.15 = Your-IP-Server ##### chat.ttc.local = Your-Fullname/FQDN upstream backend { server 192.168.1.15:3000; } server { listen 80; # Access via IP-Address #server_name 192.168.1.15; # Access via Domain #server_name chat.ttc.local; # Both IP & Domain server_name 192.168.1.15 chat.ttc.local; access_log /var/log/nginx/rocket-chat.access.log; error_log /var/log/nginx/rocket-chat.error.log; 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-Forward-For $proxy_add_x_forwarded_for; proxy_set_header X-Forward-Proto http; proxy_set_header X-Nginx-Proxy true; proxy_redirect off; } }