mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 09:54:40 +02:00
service/gitea: update and move to code-subdomain
This commit is contained in:
parent
d06f324fec
commit
b76fde3f9f
1 changed files with 14 additions and 13 deletions
|
@ -19,11 +19,12 @@ in
|
||||||
services.gitea = {
|
services.gitea = {
|
||||||
enable = true;
|
enable = true;
|
||||||
httpPort = cfg.port;
|
httpPort = cfg.port;
|
||||||
log.level = "Warn";
|
rootUrl = "https://code.${domain}";
|
||||||
disableRegistration = true;
|
|
||||||
cookieSecure = true;
|
|
||||||
settings = {
|
settings = {
|
||||||
|
session.COOKIE_SECURE = true;
|
||||||
|
service.DISABLE_REGISTRATION = true;
|
||||||
ui.DEFAULT_THEME = "arc-green";
|
ui.DEFAULT_THEME = "arc-green";
|
||||||
|
log.LEVEL = "Warn";
|
||||||
};
|
};
|
||||||
lfs.enable = true;
|
lfs.enable = true;
|
||||||
};
|
};
|
||||||
|
@ -31,24 +32,24 @@ in
|
||||||
# Proxy to Gitea
|
# Proxy to Gitea
|
||||||
my.services.nginx.virtualHosts = [
|
my.services.nginx.virtualHosts = [
|
||||||
{
|
{
|
||||||
subdomain = "git";
|
subdomain = "code";
|
||||||
inherit (cfg) port;
|
inherit (cfg) port;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
#my.services.backup = {
|
my.services.backup = {
|
||||||
# paths = [
|
paths = [
|
||||||
# config.services.gitea.lfs.contentDir
|
config.services.gitea.lfs.contentDir
|
||||||
# config.services.gitea.repositoryRoot
|
config.services.gitea.repositoryRoot
|
||||||
# ];
|
];
|
||||||
#};
|
};
|
||||||
|
|
||||||
webapps.apps.gitea = {
|
webapps.apps.gitea = {
|
||||||
dashboard = {
|
dashboard = {
|
||||||
name = "Git";
|
name = "Code";
|
||||||
category = "app";
|
category = "app";
|
||||||
icon = "git";
|
icon = "code-branch";
|
||||||
link = "https://git.${domain}";
|
link = "https://code.${domain}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue