From 3d6b171a432b4d5e832328a016c8e598876c4df0 Mon Sep 17 00:00:00 2001 From: Alexandre LUCAZEAU Date: Fri, 28 Jul 2023 18:11:10 +0000 Subject: [PATCH] ADD syncthing to web server --- hosts/web/configuration.nix | 1 + hosts/web/webserver.nix | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/hosts/web/configuration.nix b/hosts/web/configuration.nix index 823b9e1..0943802 100644 --- a/hosts/web/configuration.nix +++ b/hosts/web/configuration.nix @@ -10,6 +10,7 @@ ../modules/users.nix # ../docker/appsmith.nix ../docker/kuma.nix + ../modules/syncthing.nix ]; system.stateVersion = "21.11"; diff --git a/hosts/web/webserver.nix b/hosts/web/webserver.nix index 65bec40..4d14ce8 100644 --- a/hosts/web/webserver.nix +++ b/hosts/web/webserver.nix @@ -35,6 +35,11 @@ in atlanticaweb.fr:2021 { metrics } + https://sync.atlanticaweb.fr { + reverse_proxy http://localhost:8384 { + header_up Host {upstream_hostport} +} + } www.atlanticaweb.fr { redir https://atlanticaweb.fr{uri} }