Skip to content

Commit

Permalink
improve forgejo's configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelroses committed Oct 19, 2023
1 parent b7c66bc commit f6ba8a0
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion modules/common/types/server/services/forgejo/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ in {
SSH_LISTEN_PORT = 2222;
};

api.ENABLE_SWAGGER = false;

default.APP_NAME = "iztea";
attachment.ALLOWED_TYPES = "*/*";

Expand All @@ -79,6 +81,12 @@ in {
(builtins.attrNames (builtins.readDir theme))));
};

# "ui.meta" = {
# AUTHOR = "Isabel Roses";
# DESCRIPTION = "A super cool place to host git repos";
# KEYWORDS = "git,self-hosted,gitea,forgejo,isabelroses,catppuccin,open-source,nix,nixos";
# };

actions = {
ENABLED = true;
DEFAULT_ACTIONS_URL = "https://code.forgejo.org";
Expand All @@ -98,7 +106,17 @@ in {
HOST = "redis://:forgejo@localhost:6371";
};

service.DISABLE_REGISTRATION = true;
service = {
DISABLE_REGISTRATION = true;
EMAIL_DOMAIN_ALLOWLIST = "isabelroses.com";
};

other = {
SHOW_FOOTER_VERSION = false;
SHOW_FOOTER_TEMPLATE_LOAD_TIME = false;
ENABLE_FEED = false;
};

migrations.ALLOWED_DOMAINS = "github.com, *.github.com, gitlab.com, *.gitlab.com";
packages.ENABLED = false;
repository.PREFERRED_LICENSES = "MIT,GPL-3.0,GPL-2.0,LGPL-3.0,LGPL-2.1";
Expand Down

0 comments on commit f6ba8a0

Please sign in to comment.