module: Fix missing headers for websockets

Should fix error: invalid origin when using websockets

Adapted from:
70c40e2be0/resources/nginx-template.conf (L49-L50)
This commit is contained in:
teutat3s 2023-07-20 00:11:58 +02:00
parent e74f2d0f04
commit 66e6c685d0
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1

View file

@ -313,7 +313,10 @@ in
file_server
}
handle /socket.io/* {
reverse_proxy :${toString cfg.socketIoPort}
reverse_proxy :${toString cfg.socketIoPort} {
header_up X-Frappe-Site-Name "${cfg.domain}"
header_up Origin "{scheme}://${cfg.domain}"
}
}
reverse_proxy :${toString cfg.webserver.bindPort}