dotfiles/nix/modules/forgejo.nix

28 lines
601 B
Nix

{ config, pkgs, ... }:
let
domain = "git.olexsmir.xyz";
in
{
services.caddy.virtualHosts.${domain}.extraConfig = ''
reverse_proxy http://localhost:3001
'';
services.forgejo = {
enable = true;
database.type = "sqlite3";
settings = {
server = {
DOMAIN = domain;
ROOT_URL = "https://${domain}/";
HTTP_PORT = 3001;
# TODO: ? setup ssh
};
DEFAULT.APP_NAME = "my git";
repository.DISABLE_STARS = true;
service.DISABLE_REGISTRATION = true;
actions.ENABLED = false; # TODO:
};
};
# TODO: setup woodpecker
}