m 1 shoney: update to new tinc_stats api, reject external
This commit is contained in:
parent
1488a0c752
commit
1eceb8ac46
@ -21,7 +21,6 @@ in {
|
||||
krebs = {
|
||||
enable = true;
|
||||
build.host = config.krebs.hosts.shoney;
|
||||
nginx.enable = true;
|
||||
tinc_graphs = {
|
||||
enable = true;
|
||||
network = "siem";
|
||||
@ -29,9 +28,15 @@ in {
|
||||
nginx = {
|
||||
enable = true;
|
||||
# TODO: remove hard-coded hostname
|
||||
anonymous-domain = "localhost.localdomain";
|
||||
anonymous.extraConfig = "return 403;";
|
||||
complete = {
|
||||
listen = [ "${tinc-siem-ip}:80" ];
|
||||
server-names = [ "graphs.siem" ];
|
||||
serverAliases = [ "graphs.siem" ];
|
||||
extraConfig = ''
|
||||
if ( $server_addr = "${ip}" ) {
|
||||
return 403;
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user