Update to 23.05 #86
|
@ -108,11 +108,14 @@
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
allowSFTP = false;
|
allowSFTP = false;
|
||||||
passwordAuthentication = false;
|
|
||||||
permitRootLogin = "no";
|
|
||||||
ports = [2222];
|
ports = [2222];
|
||||||
startWhenNeeded = true;
|
startWhenNeeded = true;
|
||||||
gatewayPorts = "yes";
|
|
||||||
|
settings = {
|
||||||
|
GatewayPorts = "yes";
|
||||||
|
PermitRootLogin = "no";
|
||||||
|
PasswordAuthentication = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
security = {
|
security = {
|
||||||
|
|
|
@ -2,18 +2,19 @@
|
||||||
domain = "gitea.${config.services.nginx.domain}";
|
domain = "gitea.${config.services.nginx.domain}";
|
||||||
in {
|
in {
|
||||||
services.gitea = {
|
services.gitea = {
|
||||||
inherit domain;
|
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
httpAddress = "127.0.0.1";
|
|
||||||
database.type = "postgres";
|
database.type = "postgres";
|
||||||
|
|
||||||
rootUrl = "https://${domain}/";
|
|
||||||
|
|
||||||
appName = "Gitea: Git with a cup of tea";
|
appName = "Gitea: Git with a cup of tea";
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
server.SSH_PORT = 2222;
|
server = {
|
||||||
|
DOMAIN = domain;
|
||||||
|
HTTP_ADDR = "127.0.0.1";
|
||||||
|
ROOT_URL = "https://${domain}/";
|
||||||
|
SSH_PORT = 2222;
|
||||||
|
};
|
||||||
|
|
||||||
service.DISABLE_REGISTRATION = true;
|
service.DISABLE_REGISTRATION = true;
|
||||||
session.COOKIE_SECURE = true;
|
session.COOKIE_SECURE = true;
|
||||||
};
|
};
|
||||||
|
@ -21,7 +22,8 @@ in {
|
||||||
|
|
||||||
# Set up SSL
|
# Set up SSL
|
||||||
services.nginx.virtualHosts."${domain}" = let
|
services.nginx.virtualHosts."${domain}" = let
|
||||||
inherit (config.services.gitea) httpAddress httpPort;
|
httpAddress = config.services.gitea.settings.server.HTTP_ADDR;
|
||||||
|
httpPort = config.services.gitea.settings.server.HTTP_PORT;
|
||||||
in {
|
in {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
nextcloud = pkgs.nextcloud25;
|
nextcloud = pkgs.nextcloud26;
|
||||||
hostName = "nextcloud.${config.services.nginx.domain}";
|
hostName = "nextcloud.${config.services.nginx.domain}";
|
||||||
in {
|
in {
|
||||||
services.nextcloud = {
|
services.nextcloud = {
|
||||||
|
|
Loading…
Reference in a new issue