athens/modules/home-assistant/nginx.nix

18 lines
317 B
Nix

{ config, lib, pkgs, ... }:
{
services.nginx = {
enable = true;
virtualHosts = {
"hass.nerdhaus.ca" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://100.71.31.76:8123";
proxyWebsockets = true;
};
};
};
};
}