add nginx localhost site
This commit is contained in:
parent
c306ed1716
commit
91c3ad7839
59
nginx-localhost.site
Normal file
59
nginx-localhost.site
Normal file
|
@ -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;
|
||||
}
|
||||
}
|
Reference in a new issue