fix gitea deprecation warnings

This commit is contained in:
Jill 2023-01-19 00:25:07 +01:00
parent 7331092d87
commit a6d0cd6e62
2 changed files with 3 additions and 3 deletions

View File

@ -24,6 +24,7 @@ DEFAULT_KEEP_EMAIL_PRIVATE = true
DEFAULT_ALLOW_CREATE_ORGANIZATION = true DEFAULT_ALLOW_CREATE_ORGANIZATION = true
DEFAULT_ENABLE_TIMETRACKING = true DEFAULT_ENABLE_TIMETRACKING = true
NO_REPLY_ADDRESS = "noreply.oat.zone" NO_REPLY_ADDRESS = "noreply.oat.zone"
DISABLE_REGISTRATION = true
[picture] [picture]
DISABLE_GRAVATAR = false DISABLE_GRAVATAR = false
@ -34,7 +35,8 @@ ENABLE_OPENID_SIGNIN = false
ENABLE_OPENID_SIGNUP = false ENABLE_OPENID_SIGNUP = false
[session] [session]
PROVIDER = "file" PROVIDER = "file"
COOKIE_SECURE = true
[other] [other]
SHOW_FOOTER_BRANDING = true SHOW_FOOTER_BRANDING = true

View File

@ -24,12 +24,10 @@ in {
gitea = { gitea = {
enable = true; enable = true;
package = pkgs.unstable.gitea; package = pkgs.unstable.gitea;
disableRegistration = true;
domain = cfg.domain; domain = cfg.domain;
httpPort = cfg.port; httpPort = cfg.port;
rootUrl = "https://${cfg.domain}/"; rootUrl = "https://${cfg.domain}/";
stateDir = "/var/lib/${cfg.domain}"; stateDir = "/var/lib/${cfg.domain}";
cookieSecure = true;
appName = "Gitea: dark-firepit hosted Git"; appName = "Gitea: dark-firepit hosted Git";
database = { database = {
type = "postgres"; type = "postgres";