Add reverse proxy

This commit is contained in:
Jordan Holt 2025-01-05 10:58:09 +00:00
parent f8405bf012
commit 378f2d9882
Signed by: jordan
GPG Key ID: B8CFFF61F1CCF520

View File

@ -123,6 +123,11 @@
backup = { };
binary_sensor = [ ];
default_config = { };
http = {
server_host = "::1";
trusted_proxies = [ "::1" ];
use_x_forwarded_for = true;
};
ffmpeg = { };
homeassistant = {
name = "Home";
@ -366,7 +371,17 @@
customLovelaceModules = with pkgs.home-assistant-custom-lovelace-modules; [
mushroom
];
};
services.nginx.virtualHosts."home.mesh.vimium.net" = {
forceSSL = false;
extraConfig = ''
proxy_buffering off;
'';
locations."/" = {
proxyPass = "http://[::1]:8123";
proxyWebsockets = true;
};
};
services.mosquitto = {