2023-12-23 21:29:18 +00:00
|
|
|
{ ... }:
|
|
|
|
{
|
|
|
|
services = {
|
2023-12-23 23:29:27 +00:00
|
|
|
forgejo = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
DEFAULT = {
|
|
|
|
APP_NAME = "Git • Joshua Potter";
|
|
|
|
RUN_MODE = "prod";
|
|
|
|
};
|
|
|
|
database = {
|
|
|
|
# This is already set in /nixos/modules/services/misc/forgejo.nix.
|
|
|
|
# Include here to be explicit. The database file is located at
|
|
|
|
# `/var/lib/forgejo/data`.
|
|
|
|
DB_TYPE = "sqlite3";
|
|
|
|
};
|
|
|
|
repository = {
|
|
|
|
DISABLE_DOWNLOAD_SOURCE_ARCHIVES = true;
|
|
|
|
DISABLE_STARS = true;
|
|
|
|
};
|
|
|
|
other = {
|
|
|
|
SHOW_FOOTER_VERSION = false;
|
|
|
|
SHOW_FOOTER_TEMPLATE_LOAD_TIME = false;
|
|
|
|
};
|
|
|
|
server = {
|
|
|
|
LANDING_PAGE = "/explore/repos";
|
2023-12-24 04:28:29 +00:00
|
|
|
ROOT_URL = "https://git.jrpotter.com";
|
2023-12-23 23:29:27 +00:00
|
|
|
};
|
|
|
|
service = {
|
|
|
|
DISABLE_REGISTRATION = true;
|
|
|
|
};
|
2023-12-24 04:28:29 +00:00
|
|
|
"service.explore" = {
|
|
|
|
DISABLE_USERS_PAGE = true;
|
|
|
|
};
|
|
|
|
ui = {
|
|
|
|
SHOW_USER_EMAIL = false;
|
|
|
|
};
|
2023-12-23 23:29:27 +00:00
|
|
|
"ui.meta" = {
|
|
|
|
AUTHOR = "Git • Joshua Potter";
|
|
|
|
DESCRIPTION = "Self-hosted git repositories.";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-04-12 20:10:56 +00:00
|
|
|
nginx = {
|
|
|
|
recommendedGzipSettings = true;
|
|
|
|
recommendedOptimisation = true;
|
|
|
|
recommendedProxySettings = true;
|
|
|
|
recommendedTlsSettings = true;
|
|
|
|
|
|
|
|
virtualHosts."git.jrpotter.com" = {
|
|
|
|
forceSSL = true;
|
|
|
|
enableACME = true;
|
|
|
|
locations."/" = {
|
|
|
|
proxyPass = "http://127.0.0.1:3000";
|
|
|
|
};
|
2023-12-23 21:29:18 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|