Home network update
Baldur: disable proxy buffering for home-assistant Freya: cleanup for setup Loki: home-assistant configuration
This commit is contained in:
parent
2d5a12eba0
commit
f5ed37a7fb
3 changed files with 10 additions and 30 deletions
|
|
@ -66,6 +66,7 @@ with lib; {
|
||||||
locations."/" = { proxyPass = "http://${loki}:8123/"; proxyWebsockets = true; };
|
locations."/" = { proxyPass = "http://${loki}:8123/"; proxyWebsockets = true; };
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
proxy_pass_header Authorization;
|
proxy_pass_header Authorization;
|
||||||
|
proxy_buffering off;
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
"radarr.bertof.net" = ssl // { locations."/" = { proxyPass = "http://${loki}:7878/"; proxyWebsockets = true; }; };
|
"radarr.bertof.net" = ssl // { locations."/" = { proxyPass = "http://${loki}:7878/"; proxyWebsockets = true; }; };
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,8 @@
|
||||||
{ pkgs, lib, ... }:
|
{ pkgs, lib, ... }:
|
||||||
with lib; {
|
with lib; {
|
||||||
boot = {
|
boot = {
|
||||||
binfmt.emulatedSystems = [ "armv7l-linux" "aarch64-linux" ];
|
|
||||||
kernelPackages = pkgs.linuxPackages_latest;
|
kernelPackages = pkgs.linuxPackages_latest;
|
||||||
loader = {
|
loader = { systemd-boot.enable = true; efi.canTouchEfiVariables = true; };
|
||||||
systemd-boot.enable = true;
|
|
||||||
efi.canTouchEfiVariables = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
console = {
|
console = {
|
||||||
|
|
|
||||||
|
|
@ -407,20 +407,18 @@ with lib; {
|
||||||
external_url = "https://home-assistant.bertof.net";
|
external_url = "https://home-assistant.bertof.net";
|
||||||
};
|
};
|
||||||
|
|
||||||
automation = "!include automations.yaml";
|
|
||||||
script = "!include scripts.yaml";
|
|
||||||
scene = "!include scenes.yaml";
|
|
||||||
|
|
||||||
http = {
|
http = {
|
||||||
use_x_forwarded_for = true;
|
use_x_forwarded_for = true;
|
||||||
trusted_proxies = [ "172.23.252.242" "::1" "127.0.0.1" ];
|
trusted_proxies = [ "172.23.252.242" "::1" "127.0.0.1" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
esphome = { };
|
|
||||||
|
|
||||||
|
|
||||||
cloud = { };
|
cloud = { };
|
||||||
config = { };
|
config = { };
|
||||||
|
device_tracker = [{
|
||||||
|
platform = "bluetooth_tracker";
|
||||||
|
request_rssi = true;
|
||||||
|
}];
|
||||||
|
esphome = { };
|
||||||
frontend = { };
|
frontend = { };
|
||||||
history = { };
|
history = { };
|
||||||
logbook = { };
|
logbook = { };
|
||||||
|
|
@ -437,6 +435,7 @@ with lib; {
|
||||||
};
|
};
|
||||||
configDir = "/var/lib/hass";
|
configDir = "/var/lib/hass";
|
||||||
configWritable = true;
|
configWritable = true;
|
||||||
|
extraPackages = ps: with ps; [ securetar ];
|
||||||
extraComponents = [
|
extraComponents = [
|
||||||
"default_config"
|
"default_config"
|
||||||
|
|
||||||
|
|
@ -444,8 +443,6 @@ with lib; {
|
||||||
"accuweather"
|
"accuweather"
|
||||||
"alert"
|
"alert"
|
||||||
"analytics"
|
"analytics"
|
||||||
"automation"
|
|
||||||
"backup"
|
|
||||||
"bayesian"
|
"bayesian"
|
||||||
"binary_sensor"
|
"binary_sensor"
|
||||||
"blueprint"
|
"blueprint"
|
||||||
|
|
@ -455,17 +452,14 @@ with lib; {
|
||||||
"camera"
|
"camera"
|
||||||
"cast"
|
"cast"
|
||||||
"citybikes"
|
"citybikes"
|
||||||
"config"
|
|
||||||
"configurator"
|
"configurator"
|
||||||
"coronavirus"
|
"coronavirus"
|
||||||
"counter"
|
|
||||||
"cover"
|
"cover"
|
||||||
"default_config"
|
"default_config"
|
||||||
"derivative"
|
"derivative"
|
||||||
"device_automation"
|
"device_automation"
|
||||||
"device_sun_light_trigger"
|
"device_sun_light_trigger"
|
||||||
"device_tracker"
|
"device_tracker"
|
||||||
"dhcp"
|
|
||||||
"dlib_face_detect"
|
"dlib_face_detect"
|
||||||
"dlib_face_identify"
|
"dlib_face_identify"
|
||||||
"dlna_dmr"
|
"dlna_dmr"
|
||||||
|
|
@ -474,18 +468,11 @@ with lib; {
|
||||||
"flux"
|
"flux"
|
||||||
"group"
|
"group"
|
||||||
"hassio"
|
"hassio"
|
||||||
"input_boolean"
|
|
||||||
"input_button"
|
|
||||||
"input_datetime"
|
|
||||||
"input_number"
|
|
||||||
"input_select"
|
|
||||||
"input_text"
|
|
||||||
"jellyfin"
|
"jellyfin"
|
||||||
"local_file"
|
"local_file"
|
||||||
"media_player"
|
"media_player"
|
||||||
"met"
|
"met"
|
||||||
# "meteoalarm"
|
"meteoalarm"
|
||||||
"mobile_app"
|
|
||||||
"network"
|
"network"
|
||||||
"nmap_tracker"
|
"nmap_tracker"
|
||||||
"notify"
|
"notify"
|
||||||
|
|
@ -495,19 +482,15 @@ with lib; {
|
||||||
"radarr"
|
"radarr"
|
||||||
"radio_browser"
|
"radio_browser"
|
||||||
"random"
|
"random"
|
||||||
# "schedule"
|
|
||||||
"script"
|
|
||||||
"sonarr"
|
"sonarr"
|
||||||
# "spotify"
|
"spotify"
|
||||||
"tcp"
|
"tcp"
|
||||||
"template"
|
"template"
|
||||||
"threshold"
|
"threshold"
|
||||||
"timer"
|
|
||||||
"tod" # times of the day
|
"tod" # times of the day
|
||||||
"trend"
|
"trend"
|
||||||
"upnp"
|
"upnp"
|
||||||
"workday"
|
"workday"
|
||||||
"zeroconf"
|
|
||||||
"zoneminder"
|
"zoneminder"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue