From 596dc2bb0f827946a56bca8f43a45c546ac190e4 Mon Sep 17 00:00:00 2001 From: makefu Date: Sun, 21 Oct 2018 23:19:09 +0200 Subject: [PATCH] ma bepasty-dual: unauthorized on error --- 2configs/bepasty-dual.nix | 5 +++++ 2configs/deployment/graphs.nix | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/2configs/bepasty-dual.nix b/2configs/bepasty-dual.nix index 8906522..f63dbef 100644 --- a/2configs/bepasty-dual.nix +++ b/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; diff --git a/2configs/deployment/graphs.nix b/2configs/deployment/graphs.nix index bde9892..e7dc54d 100644 --- a/2configs/deployment/graphs.nix +++ b/2configs/deployment/graphs.nix @@ -6,11 +6,6 @@ let internal-ip = config.krebs.build.host.nets.retiolum.ip4.addr; hn = config.krebs.build.host.name; in { - krebs.bepasty.servers."paste.r".nginx.extraConfig = '' - if ( $server_addr = "${external-ip}" ) { - return 403; - } - ''; krebs.tinc_graphs = { enable = true; nginx = {