summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/bepasty-dual.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2018-10-21 23:19:09 +0200
committermakefu <github@syntax-fehler.de>2018-10-21 23:19:09 +0200
commit99b737e3e554b866fef2a9ba5fa58107e6c75aac (patch)
treec3c081a133b943b6dbd4483b767ca4b1e7092a64 /makefu/2configs/bepasty-dual.nix
parent851c0e47d1ac7073ea5a38a656f93054b20d4b44 (diff)
ma bepasty-dual: unauthorized on error
Diffstat (limited to 'makefu/2configs/bepasty-dual.nix')
-rw-r--r--makefu/2configs/bepasty-dual.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/makefu/2configs/bepasty-dual.nix b/makefu/2configs/bepasty-dual.nix
index 890652285..f63dbefd8 100644
--- a/makefu/2configs/bepasty-dual.nix
+++ b/makefu/2configs/bepasty-dual.nix
@@ -32,6 +32,11 @@ in {
"paste.${config.krebs.build.host.name}"
"paste.r"
];
+ extraConfig = ''
+ if ( $server_addr = "${external-ip}" ) {
+ return 403;
+ }
+ '';
};
defaultPermissions = "admin,list,create,read,delete";
secretKeyFile = secKey;