Merge pull request 'fix nginx mesh proxy' (#10) from fix/IframeUri into main
All checks were successful
CI / build-test (push) Successful in 50s
Deploy Staging (Docker) / deploy (push) Successful in 1m51s

Reviewed-on: http://203.171.20.94:3000/PhuongDM/TTMT.ManageWebGUI/pulls/10
This commit is contained in:
bachdam 2026-05-27 23:01:14 +07:00
commit 5ebcde08e9

View File

@ -155,7 +155,11 @@ server {
} }
location ~ ^/api/meshcentral/proxy/(.*)$ { location ~ ^/api/meshcentral/proxy/(.*)$ {
proxy_pass http://$meshserver/$1$is_args$args; # Forward directly to MeshCentral via Tailscale HTTPS so MeshCentral receives
# requests over TLS and generates correct absolute URLs based on $meshhost.
proxy_pass https://soict-overleaf.tailc51e09.ts.net:8443/$1$is_args$args;
proxy_ssl_verify off;
proxy_ssl_server_name on;
proxy_cookie_path / "/; HTTPOnly; Secure; SameSite=None"; proxy_cookie_path / "/; HTTPOnly; Secure; SameSite=None";
proxy_set_header Host $meshhost; proxy_set_header Host $meshhost;