pipebert: block websites outside of hq

This commit is contained in:
Sandro - 2023-05-25 22:18:21 +02:00
parent 3333332a03
commit 000000f0c5
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }: { config, lib, libC, pkgs, ... }:
{ {
imports = [ imports = [
@ -82,7 +82,7 @@
proxy_set_header X-Scheme $scheme; proxy_set_header X-Scheme $scheme;
proxy_set_header Accept-Encoding identity; proxy_set_header Accept-Encoding identity;
client_max_body_size 200M; client_max_body_size 200M;
''; '' + libC.hqNetworkOnly;
}; };
# locations."/cam/stream" = { # locations."/cam/stream" = {
# proxyPass = "http://localhost:3020/?action=stream"; # proxyPass = "http://localhost:3020/?action=stream";
@ -104,6 +104,7 @@
locations."/" = { locations."/" = {
proxyPass = "http://127.0.0.1:8888/"; proxyPass = "http://127.0.0.1:8888/";
proxyWebsockets = true; proxyWebsockets = true;
extraConfig = libC.hqNetworkOnly;
}; };
}; };
"mopidy.hq.c3d2.de" = { "mopidy.hq.c3d2.de" = {
@ -112,6 +113,7 @@
locations."/" = { locations."/" = {
proxyPass = "http://127.0.0.1:6680"; proxyPass = "http://127.0.0.1:6680";
proxyWebsockets = true; proxyWebsockets = true;
extraConfig = libC.hqNetworkOnly;
}; };
}; };
"pipebert.hq.c3d2.de" = { "pipebert.hq.c3d2.de" = {