nixos-config/nixos/services/forgejo.nix

38 lines
905 B
Nix
Raw Normal View History

2024-03-12 22:19:52 +05:00
{ config, ... }:
{
services.forgejo = {
enable = true;
settings = {
session.COOKIE_SECURE = true;
server = {
ROOT_URL = "https://git.comfycamp.space";
PROTOCOL = "http+unix";
DOMAIN = "git.comfycamp.space";
};
log.LEVEL = "Warn";
mailer = {
ENABLED = true;
PROTOCOL = "smtps";
SMTP_ADDR = "comfycamp.space";
SMTP_PORT = 465;
2024-03-12 22:56:22 +05:00
USER = "forgejo@comfycamp.space";
2024-03-12 22:19:52 +05:00
};
};
2024-05-08 02:02:03 +05:00
lfs = {
enable = true;
};
2024-03-12 22:19:52 +05:00
mailerPasswordFile = "/var/lib/secrets/forgejo/mail.txt";
database = {
type = "postgres";
socket = "/run/postgresql";
};
};
services.nginx.virtualHosts."git.comfycamp.space" = {
useACMEHost = "comfycamp.space";
forceSSL = true;
locations."/" = {
proxyPass = "http://unix:${config.services.forgejo.settings.server.HTTP_ADDR}";
};
};
}