Skip to content

Commit

Permalink
gotosocial: deploy on main domain
Browse files Browse the repository at this point in the history
  • Loading branch information
zimbatm committed Jul 30, 2023
1 parent 425dcd0 commit e8ffbdf
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions nixosModules/gotosocial.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ config, ... }:
let
domain = "ztm.io";
domain = "gts.zimbatm.com";
cfg = config.services.gotosocial;
in
{
Expand All @@ -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
Expand All @@ -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."/" = {
Expand Down

0 comments on commit e8ffbdf

Please sign in to comment.