From 6b55ce057e4b7e18840a69379b82eaab19d12705 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Fri, 3 Jan 2025 19:53:08 +0400 Subject: [PATCH] change subdomain for akkoma --- modules/server/fedi/akkoma/default.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/modules/server/fedi/akkoma/default.nix b/modules/server/fedi/akkoma/default.nix index e6975eb6..61b1a086 100644 --- a/modules/server/fedi/akkoma/default.nix +++ b/modules/server/fedi/akkoma/default.nix @@ -10,12 +10,12 @@ in { # :( config = mkIf cfg.enable { security.acme.certs = { - "social.sako.lol" = { + "fedi.sako.lol" = { credentialsFile = "/srv/secrets/porkbun"; dnsProvider = "porkbun"; webroot = null; }; - "media.social.sako.lol" = { + "media.fedi.sako.lol" = { credentialsFile = "/srv/secrets/porkbun"; dnsProvider = "porkbun"; webroot = null; @@ -96,11 +96,11 @@ in { ":media_proxy" = { enabled = true; proxy_opts = { redirect_on_failure = true; }; - base_url = "https://media.social.sako.lol"; + base_url = "https://media.fedi.sako.lol"; }; - "Pleroma.Web.Endpoint" = { url.host = "social.sako.lol"; }; + "Pleroma.Web.Endpoint" = { url.host = "fedi.sako.lol"; }; "Pleroma.Upload" = { - base_url = "https://media.social.sako.lol/media"; + base_url = "https://media.fedi.sako.lol/media"; filters = map (pkgs.formats.elixirConf { }).lib.mkRaw [ "Pleroma.Upload.Filter.Exiftool.StripMetadata" "Pleroma.Upload.Filter.Dedupe" @@ -129,11 +129,11 @@ in { keysZoneSize = "10m"; }; nginx.virtualHosts = { - "media.social.sako.lol" = { + "media.fedi.sako.lol" = { forceSSL = true; enableACME = true; locations = { - "/" = { return = "301 https://social.sako.lol"; }; + "/" = { return = "301 https://fedi.sako.lol"; }; "/media" = { proxyPass = "http://unix:/run/akkoma/socket"; }; "/proxy" = { proxyPass = "http://unix:/run/akkoma/socket";