nixos-server/services/gitea.nix

34 lines
739 B
Nix
Raw Normal View History

2024-05-24 11:13:36 +02:00
{ pkgs, ... }: {
name = "gitea";
config = {
services.gitea = {
enable = true;
appName = "My awesome Gitea server"; # Give the site a name
database = {
2024-05-24 22:30:04 +02:00
type = "postgres";
host = "postgres.containers";
port = 3306;
name = "gitea";
user = "gitea";
createDatabase = false;
2024-05-24 22:30:04 +02:00
passwordFile = ../secrets/gitea_postgres_pass;
2024-05-24 11:13:36 +02:00
};
settings.server = {
DOMAIN = "localhost";
ROOT_URL = "http://localhost/";
HTTP_PORT = 3001;
};
};
};
ports = {
tcp = [ 3001 ];
udp = [];
http = 3001;
};
hosts = [ "localhost" ];
2024-05-25 01:01:07 +02:00
volumes = [{
name = "gitea-statedir";
mountPoint = "/var/lib/gitea";
}]; # TODO
2024-05-24 11:13:36 +02:00
}