mirror of
https://gitlab.com/ahoneybun/nix-configs.git
synced 2025-05-12 11:14:02 -06:00
add forgejo
This commit is contained in:
parent
afff9b1c78
commit
3ff0096512
1 changed files with 23 additions and 0 deletions
23
homelab/forgejo/default.nix
Normal file
23
homelab/forgejo/default.nix
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
{ lib, pkgs, config, ... }:
|
||||||
|
let
|
||||||
|
cfg = config.services.forgejo;
|
||||||
|
srv = cfg.settings.server;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
services.forgejo = {
|
||||||
|
enable = true;
|
||||||
|
database.type = "postgres";
|
||||||
|
# Enable support for Git Large File Storage
|
||||||
|
lfs.enable = true;
|
||||||
|
settings = {
|
||||||
|
server = {
|
||||||
|
#DOMAIN = "git.example.com";
|
||||||
|
# You need to specify this to remove the port from URLs in the web UI.
|
||||||
|
#ROOT_URL = "https://${srv.DOMAIN}/";
|
||||||
|
HTTP_PORT = 3001;
|
||||||
|
};
|
||||||
|
# You can temporarily allow registration to create an admin user.
|
||||||
|
service.DISABLE_REGISTRATION = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue