astrXbian/.install/nvh/vhost.txt

36 lines
960 B
Plaintext
Raw Normal View History

upstream $domain {
server 192.168.9.$ipvm:$port; #Production
#server 192.168.9.9; #Redirection maintenance
}
server {
server_name $domain;
listen 80;
include includes/errors.conf;
location / {
proxy_pass http://$domain;
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 https;
proxy_set_header Host $http_host;
proxy_redirect off;
}
2021-08-11 23:50:16 +02:00
location /ipfs {
2022-04-18 16:09:28 +02:00
proxy_pass http://127.0.0.1:8080;
2021-08-11 23:50:16 +02:00
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
}
location /ipns {
2022-04-18 16:09:28 +02:00
proxy_pass http://127.0.0.1:8080;
2021-08-11 23:50:16 +02:00
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
}
error_log /var/log/nginx/$domain_error.log;
access_log /var/log/nginx/$domain_access.log;
}