From 91c3ad78395bc3a25bdff30fbf1d157159dc9f75 Mon Sep 17 00:00:00 2001 From: pedro Date: Mon, 18 Mar 2024 21:16:32 +0100 Subject: [PATCH] add nginx localhost site --- nginx-localhost.site | 59 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 nginx-localhost.site diff --git a/nginx-localhost.site b/nginx-localhost.site new file mode 100644 index 0000000..2a00f69 --- /dev/null +++ b/nginx-localhost.site @@ -0,0 +1,59 @@ +server { + server_name localhost; + listen 80; + listen [::]:80; + + location /.well-known { + default_type "text/plain"; + allow all; + root /var/www/html; + } + + location / { + proxy_pass http://localhost:9091; + 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; + } +} + +server { + server_name idhub2; + listen 80; + listen [::]:80; + + location /.well-known { + default_type "text/plain"; + allow all; + root /var/www/html; + } + + location / { + proxy_pass http://idhub2:9092; + 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; + } +} + +server { + server_name idhub3; + listen 80; + listen [::]:80; + + location /.well-known { + default_type "text/plain"; + allow all; + root /var/www/html; + } + + location / { + proxy_pass http://idhub3:9093; + 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; + } +}