server: do stuff
This commit is contained in:
34
hosts/server/modules/gitea.nix
Normal file
34
hosts/server/modules/gitea.nix
Normal file
@@ -0,0 +1,34 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
services.gitea = {
|
||||
enable = true;
|
||||
|
||||
database = {
|
||||
type = "postgres";
|
||||
};
|
||||
|
||||
settings = {
|
||||
server = {
|
||||
DOMAIN = "git.ocbwoy3.dev";
|
||||
ROOT_URL = "https://git.ocbwoy3.dev/";
|
||||
HTTP_PORT = 2222;
|
||||
DISABLE_SSH = true;
|
||||
MAX_UPLOAD_FILE_SIZE = 5242880;
|
||||
};
|
||||
|
||||
attachment = {
|
||||
MAX_SIZE = 5; # MB (this is the one causing the 1024 KiB error)
|
||||
};
|
||||
|
||||
service = {
|
||||
DISABLE_REGISTRATION = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user