Add gitea
This commit is contained in:
@@ -18,6 +18,7 @@
|
|||||||
../../server-modules/glance.nix
|
../../server-modules/glance.nix
|
||||||
../../server-modules/radicale.nix
|
../../server-modules/radicale.nix
|
||||||
../../server-modules/actual-budget.nix
|
../../server-modules/actual-budget.nix
|
||||||
|
../../server-modules/gitea.nix
|
||||||
|
|
||||||
./disk-config.nix
|
./disk-config.nix
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
|||||||
23
server-modules/gitea.nix
Normal file
23
server-modules/gitea.nix
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{ config, pkgs, ... }:
|
||||||
|
{
|
||||||
|
services.gitea = {
|
||||||
|
enable = true;
|
||||||
|
appName = "Git Server"; # A name for your Gitea instance
|
||||||
|
settings = {
|
||||||
|
server = {
|
||||||
|
PROTOCOL = "http"; # Use http for now, caddy will handle https
|
||||||
|
DOMAIN = "git.jelles.net";
|
||||||
|
ROOT_URL = "https://git.jelles.net/";
|
||||||
|
HTTP_ADDR = "127.0.0.1";
|
||||||
|
HTTP_PORT = 3001;
|
||||||
|
DISABLE_SSH = true; # Disable the built-in SSH server, use HTTPS for cloning
|
||||||
|
};
|
||||||
|
|
||||||
|
service = {
|
||||||
|
DISABLE_REGISTRATION = true; # Consider enabling for public instances
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
services.caddy.virtualHosts."git.jelles.net".extraConfig = "reverse_proxy :3001";
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user