1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-11 07:10:39 +02:00

feat(zackbiene): add brotli compression

This commit is contained in:
oddlama 2023-03-24 21:23:59 +01:00
parent cbb6f906ec
commit 8626fb3f24
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
2 changed files with 7 additions and 6 deletions

View file

@ -20,10 +20,10 @@ in {
];
config = {
http = {
server_host = ["127.0.0.1" "::1"];
server_host = ["127.0.0.1"];
server_port = haPort;
use_x_forwarded_for = true;
trusted_proxies = ["127.0.0.1" "::1"];
trusted_proxies = ["127.0.0.1"];
};
homeassistant = {
name = "!secret ha_name";
@ -64,7 +64,7 @@ in {
'';
};
# TODO HA and zigbee2mqtt behind nginx please
# TODO
# - auth for zigbee2mqtt frontend
# - auth for esphome dashboard
# - only allow connections from privileged LAN to HA or from vpn range

View file

@ -25,6 +25,7 @@
services.nginx = {
enable = true;
recommendedBrotliSettings = true;
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedProxySettings = true;