From e32519ea30bf2a43acad09d342c0148adb645de9 Mon Sep 17 00:00:00 2001 From: RGBCube Date: Wed, 10 Jan 2024 18:33:38 +0300 Subject: [PATCH] Start writing akkoma config --- hosts/cube/akkoma.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 hosts/cube/akkoma.nix diff --git a/hosts/cube/akkoma.nix b/hosts/cube/akkoma.nix new file mode 100644 index 0000000..7a1b75d --- /dev/null +++ b/hosts/cube/akkoma.nix @@ -0,0 +1,18 @@ +{ config, ulib, ... }: with ulib; + +systemConfiguration { + services.akkoma = { # enabled { + nginx = { + forceSSL = true; + enableACME = true; + + locations."/".proxyPass = "http://localhost:${toString cfg.port}"; + }; + + config.":pleroma"."Pleroma.Web.Endpoint" = { + http.ip = "::"; + url.host = "social.${config.networking.domain}"; + url.port = 4778; + }; + }; +}