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