Update mikr.us env
This commit is contained in:
parent
d0d6cc4612
commit
d8fa19d8ef
134
deploy/nginx-mikrus.dev.conf
Normal file
134
deploy/nginx-mikrus.dev.conf
Normal file
@ -0,0 +1,134 @@
|
|||||||
|
upstream egommerce-api-gw {
|
||||||
|
server 127.0.0.1:40056;
|
||||||
|
}
|
||||||
|
|
||||||
|
upstream egommerce-api-gw-dashboard {
|
||||||
|
server 127.0.0.1:40057;
|
||||||
|
}
|
||||||
|
|
||||||
|
upstream egommerce-api-registry-ui {
|
||||||
|
server 127.0.0.1:40058;
|
||||||
|
}
|
||||||
|
|
||||||
|
upstream egommerce-api-eventbus-mngmt {
|
||||||
|
server 127.0.0.1:40059;
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
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 keshop.bieda.it;
|
||||||
|
|
||||||
|
# Traefik redirects
|
||||||
|
location /dashboard {
|
||||||
|
if ($http_referer ~ (/gateway)) {
|
||||||
|
proxy_pass http://egommerce-api-gw-dashboard;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
location /api {
|
||||||
|
if ($http_referer ~ (/gateway)) {
|
||||||
|
proxy_pass http://egommerce-api-gw-dashboard;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
location /gateway/ {
|
||||||
|
proxy_pass http://egommerce-api-gw-dashboard/dashboard/;
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
|
# Consul redirects
|
||||||
|
location /ui {
|
||||||
|
if ($http_referer ~ (/registry)) {
|
||||||
|
proxy_pass http://egommerce-api-registry-ui;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
location /v1 {
|
||||||
|
if ($http_referer ~ (/registry)) {
|
||||||
|
proxy_pass http://egommerce-api-registry-ui;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
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;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
client_max_body_size 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# RabbitMQ Mngmt redirects
|
||||||
|
location /eventbus {
|
||||||
|
return 302 /eventbus/;
|
||||||
|
}
|
||||||
|
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;
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
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;
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
|
# 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;
|
||||||
|
#}
|
@ -1,25 +1,25 @@
|
|||||||
upstream egommerce-api-gw {
|
upstream egommerce-api-gw {
|
||||||
server 127.0.0.1:40056;
|
server 127.0.0.1:48443;
|
||||||
}
|
}
|
||||||
|
|
||||||
upstream egommerce-api-gw-dashboard {
|
upstream egommerce-api-gw-dashboard {
|
||||||
server 127.0.0.1:40057;
|
server 127.0.0.1:48444;
|
||||||
}
|
}
|
||||||
|
|
||||||
upstream egommerce-api-registry-ui {
|
upstream egommerce-api-registry-ui {
|
||||||
server 127.0.0.1:40058;
|
server 127.0.0.1:48445;
|
||||||
}
|
}
|
||||||
|
|
||||||
upstream egommerce-api-eventbus-mngmt {
|
upstream egommerce-api-eventbus-mngmt {
|
||||||
server 127.0.0.1:40059;
|
server 127.0.0.1:48446;
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen [2a01:4f9:3a:2910::271]:20271 ssl;
|
listen 443 ssl;
|
||||||
ssl_certificate /home/keedosn/egommerce/deploy/certs/api-gateway/client.cert;
|
ssl_certificate /etc/letsencrypt/live/admin.egommerce.pbiernat.dev/fullchain.pem;
|
||||||
ssl_certificate_key /home/keedosn/egommerce/deploy/certs/api-gateway/client.key;
|
ssl_certificate_key /etc/letsencrypt/live/admin.egommerce.pbiernat.dev/privkey.pem;
|
||||||
|
|
||||||
server_name keshop.bieda.it;
|
server_name admin.egommerce.pbiernat.dev;
|
||||||
|
|
||||||
# Traefik redirects
|
# Traefik redirects
|
||||||
location /dashboard {
|
location /dashboard {
|
||||||
@ -103,11 +103,11 @@ server {
|
|||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
client_max_body_size 0;
|
client_max_body_size 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
error_log /var/log/nginx/keshop.bieda.it-error.log;
|
error_log /var/log/nginx/admin-egommerce.pbiernat.dev-error.log;
|
||||||
access_log /var/log/nginx/keshop.bieda.it-access.log combined;
|
access_log /var/log/nginx/admin-egommerce.pbiernat.dev-access.log combined;
|
||||||
}
|
}
|
||||||
|
|
||||||
#server {
|
#server {
|
||||||
@ -117,18 +117,9 @@ server {
|
|||||||
#
|
#
|
||||||
# server_name egommerce.pbiernat.dev;
|
# 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;
|
# error_log /var/log/nginx/egommerce.pbiernat.dev-error.log;
|
||||||
# access_log /var/log/nginx/egommerce.pbiernat.dev-access.log combined;
|
# access_log /var/log/nginx/egommerce.pbiernat.dev-access.log combined;
|
||||||
#}
|
#}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user