Skip to content
Snippets Groups Projects
Commit 02fc4b5b authored by michael.minelli's avatar michael.minelli
Browse files

Proxy => Modify configuration for not rewrite encoded path

parent f48db703
No related branches found
No related tags found
No related merge requests found
......@@ -28,8 +28,14 @@ server {
large_client_header_buffers 4 1024k;
client_max_body_size 100M;
resolver 127.0.0.11;
location /dojo/ {
proxy_pass http://dojo-frontend/;
rewrite ^ $request_uri;
rewrite ^/dojo(/.*) $1 break;
return 400;
proxy_pass http://dojo-frontend$uri;
proxy_intercept_errors on;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
......@@ -41,8 +47,11 @@ server {
}
location /dojo/api/ {
proxy_pass http://dojo-api:30992/;
rewrite ^/api(/.*)$ $1 break;
rewrite ^ $request_uri;
rewrite ^/dojo/api(/.*) $1 break;
return 400;
proxy_pass http://dojo-api:30992$uri;
proxy_intercept_errors on;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
......@@ -54,8 +63,11 @@ server {
}
location /dojo/adminer/ {
proxy_pass http://adminer:8080/;
rewrite ^/adminer(/.*)$ $1 break;
rewrite ^ $request_uri;
rewrite ^/dojo/adminer(/.*) $1 break;
return 400;
proxy_pass http://adminer:8080$uri;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_intercept_errors on;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment