initial commit
This commit is contained in:
commit
95085a0d24
16 changed files with 294 additions and 0 deletions
22
hosts/physique/hyponix/services/forgejo.nix
Normal file
22
hosts/physique/hyponix/services/forgejo.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{config, ...}:
|
||||
let
|
||||
domain = "git.${config.networking.domain}";
|
||||
in
|
||||
{
|
||||
services.forgejo = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
server = {
|
||||
DOMAIN = domain;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
services.caddy.virtualHosts."git.${config.networking.domain}" = {
|
||||
extraConfig = ''
|
||||
reverse_proxy localhost:${toString config.services.forgejo.settings.server.HTTP_PORT}
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue