removed widget dependency from nginx

This commit is contained in:
Teemu Myllynen 2024-11-15 08:00:58 +02:00
parent e642ea093e
commit 83a6dcd597
3 changed files with 0 additions and 23 deletions

View File

@ -14,4 +14,3 @@ services:
depends_on: depends_on:
- api - api
- hexabot-frontend - hexabot-frontend
- widget

View File

@ -47,16 +47,6 @@ server {
proxy_pass_request_headers on; proxy_pass_request_headers on;
} }
location /widget/ {
rewrite ^/widget/?(.*)$ /$1 break;
proxy_pass http://widget:5173;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Url-Scheme $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
}
location ~* \.io { location ~* \.io {
rewrite ^/api/?(.*)$ /$1 break; rewrite ^/api/?(.*)$ /$1 break;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;

View File

@ -29,18 +29,6 @@ server {
proxy_pass_request_headers on; proxy_pass_request_headers on;
} }
location /widget/ {
rewrite ^/widget/?(.*)$ /$1 break;
proxy_pass http://widget:5173;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Url-Scheme $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
}
location ~* \.io { location ~* \.io {
rewrite ^/api/?(.*)$ /$1 break; rewrite ^/api/?(.*)$ /$1 break;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;