has anyone tried setting up multiple TS servers behind a reverse proxy on the same IP/Host, as subdirectories?
in NGNIX this works:
location / {
proxy_pass
http://127.0.0.1:4001;
}
this does not work: (error: not found)
location /4001 {
proxy_pass
http://127.0.0.1:4001;
}
further trying to rewrite the /subdir gives error: Forbidden - a valid
x-typesense-api-key
header must be sent.
location /4001 {
rewrite ^/4001/(.*)$ /$1 break;
#or or forcing through / at the end:
proxy_pass
http://127.0.0.1:4001/;
}