initial server config

This commit is contained in:
Daniel Kauss Serna 2026-02-03 13:22:21 +01:00
commit 8f6d63909a
10 changed files with 313 additions and 0 deletions

21
services/forgejo.nix Normal file
View file

@ -0,0 +1,21 @@
{ config, pkgs, ... }:
{
services.forgejo = {
enable = true;
database.type = "sqlite3";
settings = {
server = {
DOMAIN = "git.danielk.me";
ROOT_URL = "https://git.danielk.me/";
HTTP_PORT = 3723;
};
};
};
services.caddy.virtualHosts."git.danielk.me" = {
extraConfig = ''
reverse_proxy 127.0.0.1:3723
'';
};
}