module: Fix missing headers for websockets

Should fix error: invalid origin when using websockets

Adapted from:
70c40e2be0/resources/nginx-template.conf (L49-L50)
main
teutat3s 2023-07-20 00:11:58 +02:00
parent e74f2d0f04
commit 66e6c685d0
Signed by: teutat3s
GPG Key ID: 4FA1D3FA524F22C1
1 changed files with 4 additions and 1 deletions

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}