From 1c1c2029d2f6a853e65a759b641e86aca7700cb3 Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Sat, 24 Jun 2023 18:17:19 +0200 Subject: [PATCH] Update mikr.us env --- deploy/egommerce-stack.dev.local.yml | 2 ++ deploy/nginx-vhost.dev.conf | 40 ++++++---------------------- 2 files changed, 10 insertions(+), 32 deletions(-) diff --git a/deploy/egommerce-stack.dev.local.yml b/deploy/egommerce-stack.dev.local.yml index b212099..cde7a04 100644 --- a/deploy/egommerce-stack.dev.local.yml +++ b/deploy/egommerce-stack.dev.local.yml @@ -138,3 +138,5 @@ services: - DATABASE_URL=postgres://postgres:12345678@postgres-db:5432/egommerce - MONGODB_URL=mongodb://mongodb:12345678@mongo-db:27017 - EVENTBUS_URL=amqp://guest:guest@api-eventbus:5672 + +networks: \ No newline at end of file diff --git a/deploy/nginx-vhost.dev.conf b/deploy/nginx-vhost.dev.conf index 9a14ec0..b98b7d1 100644 --- a/deploy/nginx-vhost.dev.conf +++ b/deploy/nginx-vhost.dev.conf @@ -1,25 +1,25 @@ upstream egommerce-api-gw { - server 127.0.0.1:48443; + server 135.181.211.5:40056; } upstream egommerce-api-gw-dashboard { - server 127.0.0.1:48444; + server 135.181.211.5:40057; } upstream egommerce-api-registry-ui { - server 127.0.0.1:48445; + server 135.181.211.5:40058; } upstream egommerce-api-eventbus-mngmt { - server 127.0.0.1:48446; + server 135.181.211.5:40059; } server { - listen 443 ssl; - ssl_certificate /etc/letsencrypt/live/admin.egommerce.pbiernat.dev/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/admin.egommerce.pbiernat.dev/privkey.pem; + listen [2a01:4f9:3a:2910::271]:20271 ssl; + ssl_certificate /home/keedosn/egommerce/deploy/certs/api-gateway/client.cert; + ssl_certificate_key /home/keedosn/egommerce/deploy/certs/api-gateway/client.key; - server_name admin.egommerce.pbiernat.dev; + server_name keshop.bieda.it; # Traefik redirects location /dashboard { @@ -94,27 +94,3 @@ server { error_log /var/log/nginx/admin-egommerce.pbiernat.dev-error.log; access_log /var/log/nginx/admin-egommerce.pbiernat.dev-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; -#} -