blob: b2507e4e182df3d51fea954d87dc497b56004d60 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
{ pkgs, ... }:
{
services = {
gitea = {
enable = true;
database.type = "sqlite3";
appName = "~/projects";
domain = "code.kummerlaender.eu";
rootUrl = "https://code.kummerlaender.eu/";
httpPort = 3000;
extraConfig = ''
[server]
LANDING_PAGE = "explore"
[service]
DISABLE_REGISTRATION = true
SHOW_REGISTRATION_BUTTON = false
[other]
SHOW_FOOTER_VERSION = false
SHOW_FOOTER_TEMPLATE_LOAD_TIME = false
[api]
ENABLE_SWAGGER_ENDPOINT = false
[picture]
DISABLE_GRAVATAR = true
[indexer]
REPO_INDEXER_ENABLED = true
'';
};
nginx.virtualHosts."code.kummerlaender.eu" = {
addSSL = true;
enableACME = true;
locations = {
"/" = {
proxyPass = "http://localhost:3000/";
};
};
};
};
}
|