fix marbas proxy
This commit is contained in:
@@ -6,15 +6,18 @@ server {
|
||||
location / {
|
||||
try_files $uri $uri/ $uri.html /index.html;
|
||||
}
|
||||
location /api/ {
|
||||
proxy_pass https://${API_URL}/;
|
||||
location /marbas/ {
|
||||
proxy_pass https://${MARBAS_URL}/;
|
||||
proxy_http_version 1.1;
|
||||
rewrite /api/(.*) /$1 break;
|
||||
rewrite /marbas/(.*) /$1 break;
|
||||
proxy_ssl_server_name on;
|
||||
proxy_set_header Host "${API_URL}";
|
||||
proxy_set_header Host "${MARBAS_URL}";
|
||||
proxy_set_header X-Forwarded-Proto https;
|
||||
proxy_set_header Accept-Encoding "";
|
||||
sub_filter 'https://${API_URL}/' '/appi/';
|
||||
sub_filter 'https://${MARBAS_URL}/' '/marbas/';
|
||||
sub_filter 'http://${MARBAS_URL}/' '/marbas/';
|
||||
sub_filter_once off;
|
||||
sub_filter_types application/json;
|
||||
}
|
||||
location /pocketbase/ {
|
||||
proxy_pass https://${POCKET_BASE_URL}/;
|
||||
|
||||
Reference in New Issue
Block a user