From d4461434136278f562adec5055ea8d606a1f6d68 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 25 Dec 2022 01:58:21 +0300 Subject: feat(ops/modules): set up public-inbox at inbox.tvl.su Initial setup which does not yet include fetching mails at all, this is for now only going to display a manually populated view of the existing mailing list while the rest of this stuff is set up. Change-Id: Ie1235bd257c9056fe37d0740dfca771ebdd880eb Reviewed-on: https://cl.tvl.fyi/c/depot/+/7628 Reviewed-by: flokli Reviewed-by: sterni Tested-by: BuildkiteCI --- ops/modules/www/inbox.tvl.su.nix | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 ops/modules/www/inbox.tvl.su.nix (limited to 'ops/modules/www/inbox.tvl.su.nix') diff --git a/ops/modules/www/inbox.tvl.su.nix b/ops/modules/www/inbox.tvl.su.nix new file mode 100644 index 000000000000..a9af18e3481b --- /dev/null +++ b/ops/modules/www/inbox.tvl.su.nix @@ -0,0 +1,24 @@ +{ config, ... }: + +{ + imports = [ + ./base.nix + ]; + + config = { + services.nginx.virtualHosts."inbox.tvl.su" = { + enableACME = true; + forceSSL = true; + + extraConfig = '' + location = / { + return 302 https://inbox.tvl.su/depot; + } + + location / { + proxy_pass http://localhost:${toString config.services.public-inbox.http.port}; + } + ''; + }; + }; +} -- cgit 1.4.1