29 lines
583 B
Nix
29 lines
583 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";
|
||
|
};
|
||
|
session.COOKIE_SECURE = true;
|
||
|
service.DISABLE_REGISTRATION = true;
|
||
|
ui = {
|
||
|
AMBIGUOUS_UNICODE_DETECTION = false;
|
||
|
DEFAULT_THEME = "gitea-dark";
|
||
|
};
|
||
|
};
|
||
|
database = {
|
||
|
type = "postgres";
|
||
|
socket = "/run/postgresql";
|
||
|
user = "git";
|
||
|
name = "git";
|
||
|
};
|
||
|
};
|
||
|
}
|