Files
nixos/utils/modules/gitea.nix

28 lines
573 B
Nix

{ config, ... }:
let
domain = "git.cloonar.com";
in
{
services.nginx.virtualHosts."${domain}" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://localhost:3001/";
};
};
services.gitea = {
enable = true;
appName = "Cloonar Gitea server"; # Give the site a name
settings = {
server = {
ROOT_URL = "https://${domain}/";
HTTP_PORT = 3001;
DOMAIN = domain;
};
service.DISABLE_REGISTRATION = true;
webhook.ALLOWED_HOST_LIST = "drone.cloonar.com";
};
};
}