michaelnet/cuddlefish/archive/nginx.2022.conf

68 lines
1.4 KiB
Plaintext
Raw Permalink Normal View History

#/etc/nginx/nginx.conf
events {}
http {
server {
listen 80;
server_name git.turtlebasket.ml;
client_max_body_size 50m;
location / {
proxy_pass http://127.0.0.1:3000;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
server {
listen 80;
server_name analytics.turtlebasket.ml;
location / {
proxy_pass http://127.0.0.1:8080;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
server {
listen 80;
server_name md.turtlebasket.ml;
location / {
proxy_pass http://192.168.1.25:3000;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
server {
listen 80;
server_name money.turtlebasket.ml;
location / {
proxy_pass http://192.168.1.25:8080;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
server {
listen 80;
server_name iot.turtlebasket.ml;
location / {
proxy_pass http://192.168.1.25:8123;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# Critical for websockets, which Home Assistant uses
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
}