From ce64e6e1990b62451acb3822b7ab914e16b122b6 Mon Sep 17 00:00:00 2001 From: Mel Date: Thu, 26 Dec 2024 17:24:04 +0100 Subject: Pull out web configuration from specific machine modules Signed-off-by: Mel --- services/akkoma/default.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'services/akkoma') diff --git a/services/akkoma/default.nix b/services/akkoma/default.nix index 939e9be..101d805 100644 --- a/services/akkoma/default.nix +++ b/services/akkoma/default.nix @@ -108,4 +108,18 @@ in entrypoint = "/bin/fedifetcher-entry.sh"; }; }; + + services.nginx.virtualHosts."soc.rnrd.eu" = { + forceSSL = true; + enableACME = true; + + locations."/" = { + proxyWebsockets = true; + proxyPass = "http://127.0.0.1:${toString akkomaLocalPort}"; + }; + + extraConfig = '' + access_log /var/log/nginx/akkoma.access.log json_combined; + ''; + }; } -- cgit 1.4.1