Update to nixos 23.05

This commit is contained in:
2023-06-07 21:10:31 +02:00
parent 477b38b94c
commit 307d40381f
6 changed files with 33 additions and 33 deletions

View File

@@ -1,6 +1,8 @@
{ config, pkgs, ... }:
let
cfg = config.services.gitea;
domain = "git.feal.no";
httpPort = 3004;
in {
services.gitea = {
enable = true;
@@ -8,15 +10,16 @@ in {
appName = "felixalbs Gitea";
database = {
type = "postgres";
#passwordFile = "/var/gitea/passwdfile";
};
domain = "git.feal.no";
rootUrl = "https://git.feal.no";
httpPort = 3004;
settings = {
server.LANDING_PAGE=''"/felixalb"'';
server = {
LANDING_PAGE=''"/felixalb"'';
HTTP_PORT = httpPort;
DOMAIN = domain;
ROOT_URL = "https://${domain}";
};
service.DISABLE_REGISTRATION = true;
session.COOKIE_SECURE = true;
@@ -45,5 +48,5 @@ in {
# - configure mailer
};
networking.firewall.allowedTCPPorts = [ cfg.httpPort ];
networking.firewall.allowedTCPPorts = [ httpPort ];
}