nixos-config/linux/nebula/forgejo.nix
2024-02-22 23:36:20 -08:00

17 lines
358 B
Nix

{ config, ... }:
{
services.forgejo = {
enable = true;
settings = {
server = with config.constants; {
DOMAIN = domain;
HTTP_ADDR = wildcard;
HTTP_PORT = port.forgejo;
ROOT_URL = "https://forgejo.${domain}";
};
service.DISABLE_REGISTRATION = true;
session.COOKIE_SECURE = true;
};
};
}