From 83a6dcd597057e342a6be70051928507ac0cafba Mon Sep 17 00:00:00 2001 From: Teemu Myllynen Date: Fri, 15 Nov 2024 08:00:58 +0200 Subject: [PATCH] removed widget dependency from nginx --- docker/docker-compose.nginx.yml | 1 - docker/nginx/secure/default.conf.template | 10 ---------- docker/nginx/unsecure/default.conf.template | 12 ------------ 3 files changed, 23 deletions(-) diff --git a/docker/docker-compose.nginx.yml b/docker/docker-compose.nginx.yml index 508847d..f179f3d 100644 --- a/docker/docker-compose.nginx.yml +++ b/docker/docker-compose.nginx.yml @@ -14,4 +14,3 @@ services: depends_on: - api - hexabot-frontend - - widget diff --git a/docker/nginx/secure/default.conf.template b/docker/nginx/secure/default.conf.template index e751041..898d798 100644 --- a/docker/nginx/secure/default.conf.template +++ b/docker/nginx/secure/default.conf.template @@ -47,16 +47,6 @@ server { 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 { rewrite ^/api/?(.*)$ /$1 break; proxy_set_header X-Real-IP $remote_addr; diff --git a/docker/nginx/unsecure/default.conf.template b/docker/nginx/unsecure/default.conf.template index 20dd358..dc55c3b 100644 --- a/docker/nginx/unsecure/default.conf.template +++ b/docker/nginx/unsecure/default.conf.template @@ -29,18 +29,6 @@ server { 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 { rewrite ^/api/?(.*)$ /$1 break; proxy_set_header X-Real-IP $remote_addr;