ma bepasty-dual: unauthorized on error
This commit is contained in:
parent
04d12b2490
commit
596dc2bb0f
|
@ -32,6 +32,11 @@ in {
|
||||||
"paste.${config.krebs.build.host.name}"
|
"paste.${config.krebs.build.host.name}"
|
||||||
"paste.r"
|
"paste.r"
|
||||||
];
|
];
|
||||||
|
extraConfig = ''
|
||||||
|
if ( $server_addr = "${external-ip}" ) {
|
||||||
|
return 403;
|
||||||
|
}
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
defaultPermissions = "admin,list,create,read,delete";
|
defaultPermissions = "admin,list,create,read,delete";
|
||||||
secretKeyFile = secKey;
|
secretKeyFile = secKey;
|
||||||
|
|
|
@ -6,11 +6,6 @@ let
|
||||||
internal-ip = config.krebs.build.host.nets.retiolum.ip4.addr;
|
internal-ip = config.krebs.build.host.nets.retiolum.ip4.addr;
|
||||||
hn = config.krebs.build.host.name;
|
hn = config.krebs.build.host.name;
|
||||||
in {
|
in {
|
||||||
krebs.bepasty.servers."paste.r".nginx.extraConfig = ''
|
|
||||||
if ( $server_addr = "${external-ip}" ) {
|
|
||||||
return 403;
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
krebs.tinc_graphs = {
|
krebs.tinc_graphs = {
|
||||||
enable = true;
|
enable = true;
|
||||||
nginx = {
|
nginx = {
|
||||||
|
|
Loading…
Reference in a new issue