pipebert: block websites outside of hq
This commit is contained in:
parent
3333332a03
commit
000000f0c5
|
@ -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" = {
|
||||||
|
|
Loading…
Reference in New Issue