mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 00:40:44 +02:00
28 lines
601 B
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
|
|
}
|