forked from poz/niksos
34 lines
833 B
Nix
34 lines
833 B
Nix
{
|
|
config,
|
|
...
|
|
}: {
|
|
services.forgejo = {
|
|
enable = true;
|
|
lfs.enable = true;
|
|
database.type = "postgres";
|
|
dump = {
|
|
enable = true;
|
|
type = "tar.xz";
|
|
};
|
|
settings = {
|
|
DEFAULT = {
|
|
APP_NAME = "fuck it we code";
|
|
};
|
|
|
|
server = {
|
|
DOMAIN = "git.jacekpoz.pl";
|
|
HTTP_PORT = 1849;
|
|
PROTOCOL = "http";
|
|
SSH_PORT = 8236;
|
|
ROOT_URL = "${config.services.forgejo.settings.server.PROTOCOL}://${config.services.forgejo.settings.server.DOMAIN}/";
|
|
};
|
|
};
|
|
};
|
|
|
|
services.caddy = {
|
|
enable = true;
|
|
virtualHosts."git.jacekpoz.pl".extraConfig = ''
|
|
reverse_proxy * localhost:1849
|
|
'';
|
|
};
|
|
}
|