aboutsummaryrefslogtreecommitdiff
path: root/nixos/configurations
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2025-04-27 16:39:59 +0200
committerKarel Kočí <cynerd@email.cz>2025-04-27 16:39:59 +0200
commita34f5dbcaaee5ce4215ee6cd8df341d6140f3ecf (patch)
tree07095ad895707d8f064ad33c255f9493952fb64c /nixos/configurations
parenta4ec34cc89fae0cc1da08fcf277776e45a3c471e (diff)
downloadnixos-personal-a34f5dbcaaee5ce4215ee6cd8df341d6140f3ecf.tar.gz
nixos-personal-a34f5dbcaaee5ce4215ee6cd8df341d6140f3ecf.tar.bz2
nixos-personal-a34f5dbcaaee5ce4215ee6cd8df341d6140f3ecf.zip
nixos/lipwig: add Forgejo
This is to test it. It is nice but I most likely won't stay with it. It doesn't have the federation in the level I would expect to move away from Gitlab.com as a central server.
Diffstat (limited to 'nixos/configurations')
-rw-r--r--nixos/configurations/lipwig.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/nixos/configurations/lipwig.nix b/nixos/configurations/lipwig.nix
index 9e83a72..bd1926e 100644
--- a/nixos/configurations/lipwig.nix
+++ b/nixos/configurations/lipwig.nix
@@ -103,6 +103,12 @@
fastcgi_param HTTP_HOST $server_name;
'';
};
+ "forgejo.cynerd.cz" = {
+ forceSSL = true;
+ useACMEHost = "cynerd.cz";
+ locations."/".proxyPass = "http://127.0.0.1:${toString config.services.forgejo.settings.server.HTTP_PORT}/";
+ extraConfig = "client_max_body_size 512M;";
+ };
"cloud.cynerd.cz" = {
forceSSL = true;
useACMEHost = "cynerd.cz";
@@ -140,6 +146,7 @@
certs."cynerd.cz".extraDomainNames = [
"cloud.cynerd.cz"
"office.cynerd.cz"
+ "forgejo.cynerd.cz"
"git.cynerd.cz"
"grafana.cynerd.cz"
"searx.cynerd.cz"
@@ -196,6 +203,27 @@
scan-path=/var/lib/git/repositories/
'';
+ services.forgejo = {
+ enable = true;
+ database.type = "postgres";
+ lfs.enable = true;
+ settings = {
+ server = {
+ DOMAIN = "forgejo.cynerd.cz";
+ # You need to specify this to remove the port from URLs in the web UI.
+ ROOT_URL = "https://${config.services.forgejo.settings.server.DOMAIN}/";
+ HTTP_PORT = 3001;
+ };
+ # You can temporarily allow registration to create an admin user.
+ service.DISABLE_REGISTRATION = true;
+ # Add support for actions, based on act: https://github.com/nektos/act
+ actions = {
+ ENABLED = true;
+ DEFAULT_ACTIONS_URL = "github";
+ };
+ };
+ };
+
# Nextcloud ################################################################
services.nextcloud = {
enable = true;