feat: add gitea
This commit is contained in:
33
config/git-gitea.nix
Normal file
33
config/git-gitea.nix
Normal file
@@ -0,0 +1,33 @@
|
||||
{
|
||||
pkgs,
|
||||
config,
|
||||
tools,
|
||||
...
|
||||
}:
|
||||
{
|
||||
services = {
|
||||
gitea = {
|
||||
enable = true;
|
||||
database = {
|
||||
type = "postgres";
|
||||
user = "git";
|
||||
name = "git";
|
||||
password = config.my-lxc.git.db.password;
|
||||
host = tools.build_ip "db";
|
||||
createDatabase = false;
|
||||
};
|
||||
# TODO: dump ...
|
||||
settings = {
|
||||
server.HTTP_PORT = 3000;
|
||||
};
|
||||
# user = "git";
|
||||
};
|
||||
# gitea-actions-runner.instances.default = {
|
||||
# enable = true;
|
||||
# labels = [
|
||||
# "test"
|
||||
# "nixos"
|
||||
# ];
|
||||
# };
|
||||
};
|
||||
}
|
||||
@@ -25,6 +25,17 @@ in
|
||||
staticConfigOptions = {
|
||||
api.insecure = true;
|
||||
log.level = "INFO";
|
||||
accessLog = {
|
||||
filters.statusCodes = [
|
||||
"200"
|
||||
"400-404"
|
||||
"500-503"
|
||||
];
|
||||
fields = {
|
||||
names.ClientUsername = "drop";
|
||||
headers.defaultMode = "drop";
|
||||
};
|
||||
};
|
||||
entryPoints = {
|
||||
web.address = ":80";
|
||||
websecure.address = ":443";
|
||||
|
||||
Reference in New Issue
Block a user