This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
idhub-docker/nginx-localhost.site

60 lines
1.6 KiB
Plaintext

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;
}
}