livematrix icon indicating copy to clipboard operation
livematrix copied to clipboard

NGINX Reverse Proxy

Open DoM1niC opened this issue 3 years ago • 0 comments

Server is starting fine and config.js is configured to HTTPs / WSS

When I try to sign into the Livechat this Message appears net/http: invalid Cookie.Domain ".1:8000"; dropping domain attribute after pressing F5 the Chat is working but no new Room will be create and invite me.

NGINX Conf

server {
	listen 80;
	server_name livechat.messenger.3dns.eu;
	root /opt/matrix/misc/livechat/web;
	index index.html;

	location / {

	}
	
	location /session {
		proxy_pass http://127.0.0.1:8000;
		proxy_http_version 1.1;
		proxy_set_header Host $http_host;
		proxy_set_header X-Real-IP $remote_addr;
		proxy_set_header X-Forwarded-For $remote_addr;
		proxy_set_header X-Forwarded-Proto $scheme;
	}
	location /entry {
		proxy_pass http://127.0.0.1:8000;
		proxy_http_version 1.1;
		proxy_set_header Host $http_host;
		proxy_set_header X-Real-IP $remote_addr;
		proxy_set_header X-Forwarded-For $remote_addr;
		proxy_set_header X-Forwarded-Proto $scheme;
	}
}

DoM1niC avatar Feb 10 '23 06:02 DoM1niC