athens/modules/home-assistant/nginx.nix

18 lines
317 B
Nix
Raw Normal View History

2021-07-14 22:49:45 -04:00
{ config, lib, pkgs, ... }:
{
services.nginx = {
enable = true;
virtualHosts = {
"hass.nerdhaus.ca" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://100.72.37.46:8123";
2021-07-14 22:49:45 -04:00
proxyWebsockets = true;
};
};
};
};
}