Update mikr.us env

This commit is contained in:
Piotr Biernat 2023-06-24 18:38:24 +02:00
parent 3e13ce7ec1
commit bbfb6e86f0

View File

@ -58,6 +58,7 @@ server {
location /registry { location /registry {
proxy_pass http://egommerce-api-registry-ui; proxy_pass http://egommerce-api-registry-ui;
proxy_http_version 1.1;
proxy_pass_header Server; proxy_pass_header Server;
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
@ -73,6 +74,7 @@ server {
} }
location ~* /eventbus/api/(.*?)/(.*) { location ~* /eventbus/api/(.*?)/(.*) {
proxy_pass http://egommerce-api-eventbus-mngmt/api/$1/%2F/$2?$query_string; proxy_pass http://egommerce-api-eventbus-mngmt/api/$1/%2F/$2?$query_string;
proxy_http_version 1.1;
proxy_buffering off; proxy_buffering off;
proxy_pass_header Server; proxy_pass_header Server;
proxy_set_header Host $host; proxy_set_header Host $host;
@ -83,6 +85,7 @@ server {
location ~* /eventbus/(.*) { location ~* /eventbus/(.*) {
rewrite ^/eventbus/(.*)$ /$1 break; rewrite ^/eventbus/(.*)$ /$1 break;
proxy_pass http://egommerce-api-eventbus-mngmt; proxy_pass http://egommerce-api-eventbus-mngmt;
proxy_http_version 1.1;
proxy_buffering off; proxy_buffering off;
proxy_pass_header Server; proxy_pass_header Server;
proxy_set_header Host $host; proxy_set_header Host $host;
@ -91,6 +94,41 @@ server {
proxy_set_header X-Forwarded-Proto $scheme; 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; error_log /var/log/nginx/keshop.bieda.it-error.log;
access_log /var/log/nginx/keshop.bieda.it-access.log combined; 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;
#}