mirror of
https://github.com/Noratrieb/vps.git
synced 2026-07-12 08:17:45 +02:00
gaming
This commit is contained in:
parent
8479644fc4
commit
70d8a0e941
53 changed files with 273 additions and 168 deletions
26
nix/modules/home-assistant/default.nix
Normal file
26
nix/modules/home-assistant/default.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{ config, ... }: {
|
||||
services.home-assistant = {
|
||||
enable = true;
|
||||
extraComponents = [
|
||||
# Recommended for fast zlib compression
|
||||
# https://www.home-assistant.io/integrations/isal
|
||||
"isal"
|
||||
];
|
||||
config = {
|
||||
default_config = { };
|
||||
http = {
|
||||
use_x_forwarded_for = true;
|
||||
trusted_proxies = [ "::1" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services.caddy.virtualHosts."home-assistant.internal.noratrieb.dev" = {
|
||||
extraConfig = ''
|
||||
tls {
|
||||
dns_challenge_override_domain "_acme-challenge.home-assistant.internal.noratrieb-acme-delegate.dev"
|
||||
}
|
||||
reverse_proxy * localhost:${builtins.toString config.services.home-assistant.config.http.server_port}
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue