summaryrefslogtreecommitdiffstats
path: root/lass/2configs/realwallpaper.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2017-04-17 13:15:13 +0200
committermakefu <github@syntax-fehler.de>2017-04-17 13:15:13 +0200
commit35c7e1c37545dd96c90d54191ba835eb0ceeac8e (patch)
tree65db0a2d770654f555fcac74c8e457261054df5d /lass/2configs/realwallpaper.nix
parent9d7e9bf4a9630bb763d7d7bff7880c70405c7ea3 (diff)
parentb6a4df7e398c7b4d7dc4f56d2eded22a79fee30f (diff)
Merge remote-tracking branch 'lass/master'
Diffstat (limited to 'lass/2configs/realwallpaper.nix')
-rw-r--r--lass/2configs/realwallpaper.nix16
1 files changed, 14 insertions, 2 deletions
diff --git a/lass/2configs/realwallpaper.nix b/lass/2configs/realwallpaper.nix
index cf9795071..116d66276 100644
--- a/lass/2configs/realwallpaper.nix
+++ b/lass/2configs/realwallpaper.nix
@@ -10,11 +10,23 @@ 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
+ "${hostname}.r"
];
- locations."/wallpaper.png".extraConfig = ''
- root /tmp/;
+ locations."/realwallpaper.png".extraConfig = ''
+ root /var/realwallpaper/;
+ '';
+ locations."/realwallpaper-sat.png".extraConfig = ''
+ root /var/realwallpaper/;
+ '';
+ locations."/realwallpaper-sat-krebs.png".extraConfig = ''
+ root /var/realwallpaper/;
'';
};