From e8ffbdf6dba9c107a271b076d998f1b0d7b78caa Mon Sep 17 00:00:00 2001 From: zimbatm Date: Sun, 30 Jul 2023 10:31:17 +0200 Subject: [PATCH] gotosocial: deploy on main domain --- nixosModules/gotosocial.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/nixosModules/gotosocial.nix b/nixosModules/gotosocial.nix index 77ac072..638351c 100644 --- a/nixosModules/gotosocial.nix +++ b/nixosModules/gotosocial.nix @@ -1,6 +1,6 @@ { config, ... }: let - domain = "ztm.io"; + domain = "gts.zimbatm.com"; cfg = config.services.gotosocial; in { @@ -11,10 +11,11 @@ in # Configure gotosocial services.gotosocial = { enable = true; + settings.account-domain = "zimbatm.com"; + settings.accounts-allow-custom-css = true; + settings.accounts-registration-open = false; settings.host = domain; settings.instance-expose-public-timeline = true; - settings.accounts-registration-open = false; - settings.accounts-allow-custom-css = true; }; # Put nginx in front @@ -24,7 +25,7 @@ in # Redirect / to my user since it's a single user install locations."= /" = { - return = "301 $scheme://$host/@zimbatm"; + return = "302 $scheme://$host/@zimbatm"; }; locations."/" = {