summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lass@lassul.us>2017-04-15 18:19:15 +0200
committerlassulus <lass@lassul.us>2017-04-15 18:19:15 +0200
commit64ac9ab74f1cb448da51880a0776848ddd7c63b3 (patch)
tree6595b61aeaee4dcf6aed317374fd9d861ccf67de
parent930971c9e2c3aa601f4cd87586b987c312607bc7 (diff)
l 2 realwallpaper: allow only from .r
-rw-r--r--lass/2configs/realwallpaper.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/lass/2configs/realwallpaper.nix b/lass/2configs/realwallpaper.nix
index 4794823ce..9e26d677c 100644
--- a/lass/2configs/realwallpaper.nix
+++ b/lass/2configs/realwallpaper.nix
@@ -10,6 +10,11 @@ in {
krebs.realwallpaper.enable = true;
services.nginx.virtualHosts.wallpaper = {
+ extraConfig = ''
+ if ( $server_addr = "${config.krebs.build.host.nets.internet.ip4.addr}" ) {
+ return 403;
+ }
+ '';
serverAliases = [
hostname
];