From fe30f6c32a9a36e697c52165a577b38dc26c129d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Tue, 29 Aug 2023 15:41:57 +0300 Subject: [PATCH] Add dl.jakstys.lt --- hosts/vno1-oh2/configuration.nix | 7 +++++++ modules/services/syncthing/default.nix | 15 +++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/hosts/vno1-oh2/configuration.nix b/hosts/vno1-oh2/configuration.nix index faec1b7..21324d6 100644 --- a/hosts/vno1-oh2/configuration.nix +++ b/hosts/vno1-oh2/configuration.nix @@ -186,6 +186,13 @@ virtualHosts."www.jakstys.lt".extraConfig = '' redir https://jakstys.lt ''; + virtualHosts."dl.jakstys.lt".extraConfig = '' + root * /var/www/dl + file_server browse { + hide .stfolder + } + encode gzip + ''; virtualHosts."jakstys.lt" = { logFormat = '' output file ${config.services.caddy.logDir}/access-jakstys.lt.log { diff --git a/modules/services/syncthing/default.nix b/modules/services/syncthing/default.nix index b203dd8..b0f13cd 100644 --- a/modules/services/syncthing/default.nix +++ b/modules/services/syncthing/default.nix @@ -41,6 +41,21 @@ in { // {}; folders = { + "/var/www/dl/tel" = { + devices = ["mxp10"]; + id = "gqrtz-prx9h"; + label = "www-tel"; + }; + "/var/www/dl/fwmine" = { + devices = ["fwmine"]; + id = "7z9sw-2nubh"; + label = "www-fwmine"; + }; + "/var/www/dl/mykolo" = { + devices = ["mxp10"]; + id = "wslmq-fyw4w"; + label = "mykolo"; + }; "${config.services.syncthing.dataDir}/annex2/Books" = { devices = ["mxp10" "fwmine"]; id = "8lk0n-mm63y";