fix nginx mesh proxy
All checks were successful
CI / build-test (push) Successful in 1m24s
CI / build-test (pull_request) Successful in 57s

This commit is contained in:
bachhungcb 2026-05-27 22:41:51 +07:00
parent fae5908213
commit 31a7aad02e

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;