From df7fba921fe1e73a46da48f8be6f6401f63c185a Mon Sep 17 00:00:00 2001 From: clerie Date: Fri, 3 Jan 2025 15:49:22 +0100 Subject: [PATCH] hosts/web-2: Add etebase.clerie.de --- hosts/web-2/configuration.nix | 1 + hosts/web-2/etebase.nix | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 hosts/web-2/etebase.nix diff --git a/hosts/web-2/configuration.nix b/hosts/web-2/configuration.nix index dcc3aa7..68c4a78 100644 --- a/hosts/web-2/configuration.nix +++ b/hosts/web-2/configuration.nix @@ -9,6 +9,7 @@ ./chaosevents.nix ./clerie.nix ./drop.nix + ./etebase.nix ./fieldpoc.nix ./gitea.nix ./ip.nix diff --git a/hosts/web-2/etebase.nix b/hosts/web-2/etebase.nix new file mode 100644 index 0000000..626779d --- /dev/null +++ b/hosts/web-2/etebase.nix @@ -0,0 +1,21 @@ +{ ... }: + +{ + services.etebase-server = { + enable = true; + port = 8001; + settings.allowed_hosts.allowed_host1 = "etebase.clerie.de"; + }; + + services.nginx.virtualHosts = { + "etebase.clerie.de" = { + enableACME = true; + forceSSL = true; + locations = { + "/" = { + proxyPass = "http://127.0.0.1:8001"; + }; + }; + }; + }; +}