From bbc02e5fda52f2f2bc11393cc3cf8a619f699e94 Mon Sep 17 00:00:00 2001 From: Andre Henriques Date: Tue, 15 Oct 2024 13:26:15 +0100 Subject: [PATCH] chore: re-add the nginx local config back --- local.nginx.proxy.conf | 49 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 local.nginx.proxy.conf diff --git a/local.nginx.proxy.conf b/local.nginx.proxy.conf new file mode 100644 index 0000000..b4ef822 --- /dev/null +++ b/local.nginx.proxy.conf @@ -0,0 +1,49 @@ +events { + worker_connections 2024; +} + +http { + + proxy_read_timeout 600; + proxy_connect_timeout 600; + proxy_send_timeout 600; + + map $http_upgrade $connection_upgrade { + default upgrade; + '' close; + } + + server { + listen 8001; + + client_max_body_size 5G; + + location / { + proxy_http_version 1.1; + proxy_pass http://localhost:5173; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection $connection_upgrade; + } + + location /api { + + proxy_http_version 1.1; + proxy_pass http://localhost:8080; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection $connection_upgrade; + } + + location /glassdoor { + + rewrite ^/glassdoor(.*)$ $1 break; + + proxy_http_version 1.1; + proxy_pass https://glassdoor.com; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection $connection_upgrade; + } + } +}