ark/hosts/wolumonde/modules/gitea.nix

45 lines
1.1 KiB
Nix
Raw Normal View History

2023-10-13 23:14:32 +03:00
{config, ...}: {
2022-08-11 02:57:40 +03:00
services.gitea = {
enable = true;
2024-08-23 17:18:24 +03:00
lfs.enable = true;
appName = "meow :3";
2022-08-23 09:18:59 +03:00
settings = {
2023-10-13 23:14:32 +03:00
server = {
DOMAIN = "git.gaze.systems";
ROOT_URL = "https://git.gaze.systems/";
HTTP_PORT = 3001;
};
2024-08-23 17:18:24 +03:00
service = {
DISABLE_REGISTRATION = false;
ALLOW_ONLY_EXTERNAL_REGISTRATION = true;
};
2022-08-23 09:18:59 +03:00
session.COOKIE_SECURE = true;
2024-08-23 17:18:24 +03:00
repository.MAX_CREATION_LIMIT = 0;
oauth2_client = {
ENABLE_AUTO_REGISTRATION = false;
UPDATE_AVATAR = true;
};
attachment = {
MAX_SIZE = 100;
};
2024-08-23 17:18:24 +03:00
ui = {
DEFAULT_SHOW_FULL_NAME = true;
DEFAULT_THEME = "edge-dark";
THEMES = "edge-dark,gitea";
THEME_COLOR_META_TAG = "#333644";
};
2022-08-23 09:18:59 +03:00
};
2022-08-11 02:57:40 +03:00
};
services.nginx.virtualHosts."git.gaze.systems" = {
2023-05-08 23:09:44 +03:00
useACMEHost = "gaze.systems";
2022-08-11 02:57:40 +03:00
forceSSL = true;
2024-09-22 01:55:17 +03:00
locations."/" = {
extraConfig = ''
client_max_body_size 50m;
'';
proxyPass = "http://localhost:${toString config.services.gitea.settings.server.HTTP_PORT}";
};
2022-08-11 02:57:40 +03:00
};
}