From bbfb6e86f0bfcb8357560dba065532f6e38703f1 Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Sat, 24 Jun 2023 18:38:24 +0200 Subject: [PATCH] Update mikr.us env --- deploy/nginx-vhost.dev.conf | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/deploy/nginx-vhost.dev.conf b/deploy/nginx-vhost.dev.conf index 8b323fb..e273690 100644 --- a/deploy/nginx-vhost.dev.conf +++ b/deploy/nginx-vhost.dev.conf @@ -58,6 +58,7 @@ server { location /registry { proxy_pass http://egommerce-api-registry-ui; + proxy_http_version 1.1; proxy_pass_header Server; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; @@ -73,6 +74,7 @@ server { } location ~* /eventbus/api/(.*?)/(.*) { proxy_pass http://egommerce-api-eventbus-mngmt/api/$1/%2F/$2?$query_string; + proxy_http_version 1.1; proxy_buffering off; proxy_pass_header Server; proxy_set_header Host $host; @@ -83,6 +85,7 @@ server { location ~* /eventbus/(.*) { rewrite ^/eventbus/(.*)$ /$1 break; proxy_pass http://egommerce-api-eventbus-mngmt; + proxy_http_version 1.1; proxy_buffering off; proxy_pass_header Server; proxy_set_header Host $host; @@ -91,6 +94,41 @@ server { proxy_set_header X-Forwarded-Proto $scheme; } + # Pass all requests to the API Gateway + location / { + proxy_pass https://egommerce-api-gw; + proxy_http_version 1.1; + proxy_pass_header Server; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + client_max_body_size 0; + } + error_log /var/log/nginx/keshop.bieda.it-error.log; access_log /var/log/nginx/keshop.bieda.it-access.log combined; } + +#server { +# listen 443 ssl; +# ssl_certificate /etc/letsencrypt/live/egommerce.pbiernat.dev/fullchain.pem; +# ssl_certificate_key /etc/letsencrypt/live/egommerce.pbiernat.dev/privkey.pem; +# +# server_name egommerce.pbiernat.dev; +# +# # Pass all requests to the API Gateway +# location / { +# proxy_pass https://egommerce-api-gw; +# proxy_http_version 1.1; +# proxy_pass_header Server; +# proxy_set_header Host $host; +# proxy_set_header X-Real-IP $remote_addr; +# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; +# proxy_set_header X-Forwarded-Proto $scheme; +# client_max_body_size 0; +# } +# +# error_log /var/log/nginx/egommerce.pbiernat.dev-error.log; +# access_log /var/log/nginx/egommerce.pbiernat.dev-access.log combined; +#} \ No newline at end of file