diff options
| author | Franck Cuny <franck@fcuny.net> | 2025-08-12 19:35:22 -0700 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2025-08-12 19:35:22 -0700 |
| commit | ae01076a7dd95c79d97c4b05070b1873fd4b7642 (patch) | |
| tree | 99abe7a1712ce01de92239ebf8af76d7708933e7 /machines/nixos/x86_64-linux/synology-vm/profiles | |
| parent | add a script to apply DNS terraform (diff) | |
| download | infra-ae01076a7dd95c79d97c4b05070b1873fd4b7642.tar.gz | |
initial setup for forgejo and caddy
Diffstat (limited to 'machines/nixos/x86_64-linux/synology-vm/profiles')
| -rw-r--r-- | machines/nixos/x86_64-linux/synology-vm/profiles/forgejo.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/machines/nixos/x86_64-linux/synology-vm/profiles/forgejo.nix b/machines/nixos/x86_64-linux/synology-vm/profiles/forgejo.nix new file mode 100644 index 0000000..b9dac30 --- /dev/null +++ b/machines/nixos/x86_64-linux/synology-vm/profiles/forgejo.nix @@ -0,0 +1,23 @@ +{ ... }: +{ + services.forgejo = { + enable = true; + database.type = "postgres"; + lfs.enable = false; + settings = { + session.COOKIE_SECURE = true; + server = { + DOMAIN = "code.fcuny.net"; + ROOT_URL = "https://code.fcuny.net"; + HTTP_PORT = 3000; + HTTP_ADDR = "10.100.0.40"; + }; + metrics = { + ENABLED = true; + ENABLED_ISSUE_BY_LABEL = true; + ENABLED_ISSUE_BY_REPOSITORY = true; + }; + service.DISABLE_REGISTRATION = true; + }; + }; +} |
