summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/nginx/download.binaergewitter.de.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2018-11-28 17:00:39 +0100
committermakefu <github@syntax-fehler.de>2018-11-28 17:00:39 +0100
commit26c897d72ce24a300b871a737c74742f35221006 (patch)
treeb26353bd0fbceb13b70fd30f191474dc8ddc0886 /makefu/2configs/nginx/download.binaergewitter.de.nix
parent7ee2e1e266b9373d79644cbc17c179dbc02fc2cb (diff)
ma bgt: init download.binaergewitter.de
Diffstat (limited to 'makefu/2configs/nginx/download.binaergewitter.de.nix')
-rw-r--r--makefu/2configs/nginx/download.binaergewitter.de.nix25
1 files changed, 0 insertions, 25 deletions
diff --git a/makefu/2configs/nginx/download.binaergewitter.de.nix b/makefu/2configs/nginx/download.binaergewitter.de.nix
deleted file mode 100644
index 6b5687e72..000000000
--- a/makefu/2configs/nginx/download.binaergewitter.de.nix
+++ /dev/null
@@ -1,25 +0,0 @@
-{ config, lib, pkgs, ... }:
-
-let
- ident = (toString <secrets>) + "/mirrorsync.gum.id_ed25519";
-in {
- systemd.services.mirrorsync = {
- startAt = "08:00:00";
- path = with pkgs; [ rsync openssh ];
- script = ''rsync -av -e "ssh -i ${ident}" mirrorsync@159.69.132.234:/var/www/html/ /var/www/binaergewitter'';
- };
- services.nginx = {
- enable = lib.mkDefault true;
- recommendedGzipSettings = true;
- recommendedOptimisation = true;
- virtualHosts."download.binaergewitter.de" = {
- serverAliases = [ "dl2.binaergewitter.de" ];
- root = "/var/www/binaergewitter";
- extraConfig = ''
- access_log /var/spool/nginx/logs/binaergewitter.access.log combined;
- error_log /var/spool/nginx/logs/binaergewitter.error.log error;
- autoindex on;
- '';
- };
- };
-}