init
This commit is contained in:
commit
d4bea4c7c5
12 changed files with 328 additions and 0 deletions
24
services/forgejo.nix
Normal file
24
services/forgejo.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
let
|
||||
forgejoPort = 8082;
|
||||
in {
|
||||
services.forgejo = {
|
||||
enable = true;
|
||||
lfs.enable = false;
|
||||
settings.server = {
|
||||
DOMAIN = "git.distrust.network";
|
||||
HTTP_PORT = forgejoPort;
|
||||
ROOT_URL = "https://git.distrust.network/";
|
||||
};
|
||||
};
|
||||
|
||||
services.caddy.virtualHosts."git.distrust.network".extraConfig = ''
|
||||
reverse_proxy localhost:${toString forgejoPort}
|
||||
'';
|
||||
|
||||
services.tor.relay.onionServices."forgejo".map = [
|
||||
{
|
||||
port = 80;
|
||||
target = {port = forgejoPort;};
|
||||
}
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue