1
0
IaC/nginx/truenas.conf

46 lines
1.4 KiB
Plaintext
Raw Normal View History

2024-12-31 01:08:30 +00:00
server {
listen 80 default_server;
server_name _;
return 301 https://$host$request_uri;
}
2024-12-31 01:09:09 +00:00
ssl_certificate /etc/letsencrypt/live/adguard.balsillie.house-0002/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/adguard.balsillie.house-0002/privkey.pem;
2024-12-31 01:08:30 +00:00
server {
listen 443 ssl;
server_name sync-admin.balsillie.house;
http2 on;
location / {
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;
proxy_pass http://10.96.10.15:8080/;
proxy_read_timeout 600s;
proxy_send_timeout 600s;
}
}
server {
listen 443 ssl;
server_name unifi.balsillie.house;
http2 on;
2024-12-31 03:35:25 +00:00
proxy_ssl_verify off;
location /wss/ {
proxy_pass https://10.96.10.17:8443;
proxy_http_version 1.1;
proxy_buffering off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_read_timeout 86400;
}
2024-12-31 01:08:30 +00:00
location / {
2024-12-31 03:35:25 +00:00
proxy_pass https://10.96.10.17:8443/; # The Unifi Controller Port
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
2024-12-31 01:08:30 +00:00
}
}