31 lines
693 B
Nix
31 lines
693 B
Nix
{...}:
|
|
{
|
|
services.forgejo = {
|
|
enable = true;
|
|
user = "git";
|
|
group = "git";
|
|
settings = {
|
|
server = {
|
|
ROOT_URL = "https://git.cy7.sh";
|
|
HTTP_PORT = 3000;
|
|
HTTP_ADDR = "127.0.0.1";
|
|
DOMAIN = "git.cy7.sh";
|
|
LANDING_PAGE = "/cy";
|
|
};
|
|
session.COOKIE_SECURE = true;
|
|
service.DISABLE_REGISTRATION = true;
|
|
ui = {
|
|
AMBIGUOUS_UNICODE_DETECTION = false;
|
|
DEFAULT_THEME = "gitea-dark";
|
|
};
|
|
actions.ENABLED = false;
|
|
repository.ENABLE_PUSH_CREATE_USER = true;
|
|
};
|
|
database = {
|
|
type = "postgres";
|
|
socket = "/run/postgresql";
|
|
user = "git";
|
|
name = "git";
|
|
};
|
|
};
|
|
}
|