initial commit
This commit is contained in:
commit
2ca4b5440a
13 changed files with 584 additions and 0 deletions
32
machines/gerd/services/forgejo.nix
Normal file
32
machines/gerd/services/forgejo.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{ config, ... }:
|
||||
|
||||
{
|
||||
# https://wiki.nixos.org/wiki/Forgejo
|
||||
services.forgejo = {
|
||||
enable = true;
|
||||
|
||||
stateDir = config.mine.zfsMounts."rpool/safe/svcs/forgejo";
|
||||
|
||||
settings = {
|
||||
server = {
|
||||
DOMAIN = "git.fricloud.dk";
|
||||
ROOT_URL = "https://git.fricloud.dk";
|
||||
HTTPPORT = 3000;
|
||||
};
|
||||
|
||||
service.DISABLE_REGISTRATION = true;
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
services.nginx = {
|
||||
virtualHosts."git.fricloud.dk" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
extraConfig = ''
|
||||
client_max_body_size 512M;
|
||||
'';
|
||||
locations."/".proxyPass = "http://localhost:3000";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue