homeassistant: add domain forwarding
This commit is contained in:
parent
7a83c2282e
commit
7f328e837f
|
@ -62,16 +62,26 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
"${domainName}" = {
|
"ha.${domainName}" = {
|
||||||
forceSSL = cfg.enableAcme;
|
forceSSL = cfg.enableAcme;
|
||||||
useACMEHost = mkIf cfg.enableAcme domainName;
|
useACMEHost = mkIf cfg.enableAcme domainName;
|
||||||
|
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
root = /var/www/website;
|
# tailscale ip
|
||||||
index = "index.html";
|
proxyPass = "http://100.86.23.74:8123";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# "${domainName}" = {
|
||||||
|
# forceSSL = cfg.enableAcme;
|
||||||
|
# useACMEHost = mkIf cfg.enableAcme domainName;
|
||||||
|
|
||||||
|
# locations."/" = {
|
||||||
|
# root = /var/www/website;
|
||||||
|
# index = "index.html";
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
|
||||||
"_" = {
|
"_" = {
|
||||||
forceSSL = cfg.enableAcme;
|
forceSSL = cfg.enableAcme;
|
||||||
useACMEHost = mkIf cfg.enableAcme domainName;
|
useACMEHost = mkIf cfg.enableAcme domainName;
|
||||||
|
@ -208,11 +218,11 @@ in
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
snowfallorg.users.${config.${namespace}.user.name}.home.config = {
|
# snowfallorg.users.${config.${namespace}.user.name}.home.config = {
|
||||||
programs.fish.shellInit = ''
|
# programs.fish.shellInit = ''
|
||||||
eval $(op signin)
|
# eval $(op signin)
|
||||||
'';
|
# '';
|
||||||
};
|
# };
|
||||||
|
|
||||||
system.stateVersion = "24.11";
|
system.stateVersion = "24.11";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue