mirror of
https://github.com/RGBCube/ncc
synced 2025-07-30 11:37:44 +00:00
Start working on gitea service
This commit is contained in:
parent
30d377e441
commit
52e80f9f0e
1 changed files with 27 additions and 0 deletions
27
hosts/cube/gitea.nix
Normal file
27
hosts/cube/gitea.nix
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
{ config, ulib, ... }: with ulib;
|
||||||
|
|
||||||
|
let
|
||||||
|
inherit (config.networking) domain;
|
||||||
|
|
||||||
|
fqdn = "git.${domain}";
|
||||||
|
in serverSystemConfiguration {
|
||||||
|
services.gitea = { # enabed {
|
||||||
|
lfs = enabled {};
|
||||||
|
|
||||||
|
database = {
|
||||||
|
socket = "/run/postgresql";
|
||||||
|
type = "postgres";
|
||||||
|
};
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
APP_NAME = "RGBCube's Git Server";
|
||||||
|
|
||||||
|
server.DOMAIN = fqdn;
|
||||||
|
server.HTTP_ADDR = "::";
|
||||||
|
server.SSH_PORT = builtins.elemAt config.services.openssh.port 0;
|
||||||
|
|
||||||
|
service.DISABLE_REGISTRATION = true;
|
||||||
|
session.COOKIE_SECURE = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue