Enable reverse proxying in HA

Signed-off-by: main <magic_rb@redalder.org>
This commit is contained in:
main 2022-03-23 10:36:59 +01:00
parent 5391565dea
commit c3cc9fcd2d
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E

View file

@ -31,7 +31,11 @@ nglib.makeSystem {
};
config = with { inherit (builtins) toString; };
{ default_config = {};
http.server_port = "8123";
http = {
server_port = "8123";
use_x_forwarded_for = true;
trusted_proxies = [ "127.0.0.1" ];
};
logger.default = "info";
homeassistant =
{ name = "Home";