21 lines
487 B
Plaintext
21 lines
487 B
Plaintext
|
server {
|
||
|
listen 443 ssl;
|
||
|
listen [::]:443 ssl;
|
||
|
|
||
|
server_name {{ hass_host }}.{{ backup_domain }};
|
||
|
|
||
|
include /config/nginx/ssl.conf;
|
||
|
|
||
|
client_max_body_size 0;
|
||
|
|
||
|
location / {
|
||
|
include /config/nginx/resolver.conf;
|
||
|
proxy_pass http://{{ hass_host }}.{{ pi_host }}.{{ local_domain }};
|
||
|
}
|
||
|
|
||
|
location ~ ^/(api|local|media)/ {
|
||
|
include /config/nginx/resolver.conf;
|
||
|
proxy_pass http://{{ hass_host }}.{{ pi_host }}.{{ local_domain }};
|
||
|
}
|
||
|
}
|