Configure forgejo

This commit is contained in:
Kiana Sheibani 2024-07-22 02:26:05 -04:00
parent 93de7c23f8
commit b1d21ea2b9

View file

@ -19,32 +19,42 @@ in {
database.user = cfg.user; database.user = cfg.user;
settings = { settings = {
DEFAULT.APP_NAME = "Code by toki!";
server = { server = {
DOMAIN = "git.tokinanpa.dev"; DOMAIN = "git.tokinanpa.dev";
ROOT_URL = "https://${srv.DOMAIN}/"; ROOT_URL = "https://${srv.DOMAIN}/";
}; };
service = { service.DISABLE_REGISTRATION = true;
DISABLE_REGISTRATION = true;
};
repository = { repository = {
DEFAULT_REPO_UNITS = "repo.code,repo.releases,repo.issues"; DEFAULT_REPO_UNITS = "repo.code,repo.issues,repo.pulls";
DISABLE_STARS = true;
ENABLE_PUSH_CREATE_USER = true; ENABLE_PUSH_CREATE_USER = true;
DEFAULT_PUSH_CREATE_PRIVATE = false; DEFAULT_PUSH_CREATE_PRIVATE = false;
PREFERRED_LICENSES = "MIT"; PREFERRED_LICENSES = "MIT,GPL-3.0-or-later";
};
mirror.DEFAULT_INTERVAL = "1h";
indexer = {
REPO_INDEXER_ENABLED = true;
REPO_INDEXER_EXCLUDE = "**.pdf, **.png, **.jpg, **.jpeg, **.svg, **.web, **.gpg, **.age";
}; };
ui = { ui = {
DEFAULT_THEME = "forgejo-dark"; DEFAULT_THEME = "forgejo-dark";
DEFAULT_SHOW_FULL_NAME = true; GRAPH_MAX_COMMIT_NUM = 250;
}; };
"ui.meta" = {
AUTHOR = "Kiana Sheibani";
DESCRIPTION = "Code by toki! Powered by Forgejo";
KEYWORDS = "git,forge,forgejo,toki,tokinanpa";
};
"service.explore".DISABLE_USERS_PAGE = true;
mirror.DEFAULT_INTERVAL = "1h"; federation.ENABLED = true;
}; };
}; };