Home Assistant: Difference between revisions
imported>Mweinelt No edit summary |
imported>Mweinelt Configure home-assistant's http component in reverse proxy example |
||
| Line 7: | Line 7: | ||
<syntaxHighlight lang=nix> | <syntaxHighlight lang=nix> | ||
services.home-assistant.config | |||
server_host = "::1"; | |||
trusted_proxies = [ "::1" ]; | |||
use_x_forwarded_for = true; | |||
}; | |||
services.nginx = { | services.nginx = { | ||
recommendedProxySettings = true; | recommendedProxySettings = true; | ||
virtualHosts." | virtualHosts."home.example.com" = { | ||
forceSSL = true; | forceSSL = true; | ||
enableACME = true; | enableACME = true; | ||
| Line 16: | Line 22: | ||
''; | ''; | ||
locations."/" = { | locations."/" = { | ||
proxyPass = "http:// | proxyPass = "http://[::1]:8123"; | ||
proxyWebsockets = true; | proxyWebsockets = true; | ||
}; | }; | ||