Update to nixos 23.05
This commit is contained in:
@@ -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 ];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user