summaryrefslogtreecommitdiff
path: root/services/akkoma
diff options
context:
space:
mode:
Diffstat (limited to 'services/akkoma')
-rw-r--r--services/akkoma/default.nix14
1 files changed, 14 insertions, 0 deletions
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;
+ '';
+ };
}