fix nginx mesh proxy #10

Merged
bachdam merged 1 commits from fix/IframeUri into main 2026-05-27 23:01:16 +07:00

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;