Home Assistant: Difference between revisions
imported>Mic92 add nix-shell expression |
imported>Mweinelt update location block to use options instead of verbatim extraConfig |
||
| Line 8: | Line 8: | ||
<syntaxHighlight lang=nix> | <syntaxHighlight lang=nix> | ||
services.nginx = { | services.nginx = { | ||
recommendedProxyConfig = true; | |||
virtualHosts."hass.your-domain.tld" = { | virtualHosts."hass.your-domain.tld" = { | ||
addSSL = true; | addSSL = true; | ||
| Line 14: | Line 15: | ||
proxy_buffering off; | proxy_buffering off; | ||
''; | ''; | ||
locations."/" | locations."/" = { | ||
proxyPass = "http://127.0.0.1:8123"; | |||
proxyWebsockets = true; | |||
}; | |||
}; | }; | ||
}; | }; | ||