Compare commits
4 Commits
8b5d860942
...
e10c46d37e
Author | SHA1 | Date | |
---|---|---|---|
e10c46d37e | |||
b8b055d492 | |||
e028e0b545 | |||
ac2ee4b50c |
@ -84,7 +84,7 @@ in
|
|||||||
enable = mkEnableOption "HAproxy + ACME";
|
enable = mkEnableOption "HAproxy + ACME";
|
||||||
|
|
||||||
domaine = mkOption {
|
domaine = mkOption {
|
||||||
type = types.string;
|
type = types.str;
|
||||||
example = "example.com";
|
example = "example.com";
|
||||||
description = ''
|
description = ''
|
||||||
Sous domaine à utiliser
|
Sous domaine à utiliser
|
||||||
@ -140,7 +140,6 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
security.acme.directory = "/var/lib/acme";
|
|
||||||
|
|
||||||
users.groups.acme.members = [ "haproxy" ];
|
users.groups.acme.members = [ "haproxy" ];
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ in
|
|||||||
options.services.mailserver = {
|
options.services.mailserver = {
|
||||||
enable = mkEnableOption "Mail Server";
|
enable = mkEnableOption "Mail Server";
|
||||||
domaine = mkOption {
|
domaine = mkOption {
|
||||||
type = types.string;
|
type = types.str;
|
||||||
example = "example.com";
|
example = "example.com";
|
||||||
description = "Nom de domaine du serveur de mails";
|
description = "Nom de domaine du serveur de mails";
|
||||||
};
|
};
|
||||||
|
@ -37,7 +37,7 @@ in
|
|||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
location ~* \.php$ {
|
location ~* \.php$ {
|
||||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||||
fastcgi_pass unix:/run/phpfpm/musique;
|
fastcgi_pass unix:${config.services.phpfpm.pools.musique.socket};
|
||||||
include ${pkgs.nginx}/conf/fastcgi_params;
|
include ${pkgs.nginx}/conf/fastcgi_params;
|
||||||
include ${pkgs.nginx}/conf/fastcgi.conf;
|
include ${pkgs.nginx}/conf/fastcgi.conf;
|
||||||
}
|
}
|
||||||
@ -46,21 +46,22 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.phpfpm.poolConfigs.musique = ''
|
services.phpfpm.pools.musique = {
|
||||||
listen = /run/phpfpm/musique
|
user = "nginx";
|
||||||
listen.owner = nginx
|
settings = {
|
||||||
listen.group = nginx
|
"listen.owner" = "nginx";
|
||||||
listen.mode = 0660
|
"listen.group" = "nginx";
|
||||||
user = nginx
|
"listen.mode" = "0660";
|
||||||
pm = dynamic
|
"pm" = "dynamic";
|
||||||
pm.max_children = 75
|
"pm.max_children" = 75;
|
||||||
pm.start_servers = 2
|
"pm.start_servers" = 2;
|
||||||
pm.min_spare_servers = 1
|
"pm.min_spare_servers" = 1;
|
||||||
pm.max_spare_servers = 20
|
"pm.max_spare_servers" = 20;
|
||||||
pm.max_requests = 500
|
"pm.max_requests" = 500;
|
||||||
php_admin_value[error_log] = 'stderr'
|
"php_admin_value[error_log]" = "stderr";
|
||||||
php_admin_flag[log_errors] = on
|
"php_admin_flag[log_errors]" = "on";
|
||||||
catch_workers_output = yes
|
"catch_workers_output" = "yes";
|
||||||
'';
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,7 @@ in
|
|||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = false;
|
nixpkgs.config.allowUnfree = false;
|
||||||
nixpkgs.config.allowUnfreePredicate = (pkg: builtins.elem (builtins.parseDrvName pkg.name).name [ "factorio-headless" "perl5.28.1-slimserver" "minecraft-server" ]);
|
nixpkgs.config.allowUnfreePredicate = (pkg: builtins.elem (builtins.parseDrvName pkg.pname).name [ "factorio-headless" "perl5.30.0-slimserver" "minecraft-server" ]);
|
||||||
|
|
||||||
services.zfs = {
|
services.zfs = {
|
||||||
autoSnapshot.enable = true;
|
autoSnapshot.enable = true;
|
||||||
|
@ -11,6 +11,7 @@ let
|
|||||||
musique_port = 52349;
|
musique_port = 52349;
|
||||||
factorio_port = 52351;
|
factorio_port = 52351;
|
||||||
airsonic_port = 4040;
|
airsonic_port = 4040;
|
||||||
|
wkd_port = 52352;
|
||||||
|
|
||||||
jellyfin_backend = ''
|
jellyfin_backend = ''
|
||||||
http-request set-header X-Forwarded-Port %[dst_port]
|
http-request set-header X-Forwarded-Port %[dst_port]
|
||||||
@ -91,6 +92,7 @@ in
|
|||||||
"ci.${domaine}" = { ip = "127.0.0.1"; port = 52350; auth = false; };
|
"ci.${domaine}" = { ip = "127.0.0.1"; port = 52350; auth = false; };
|
||||||
"factorio.${domaine}" = { ip = "127.0.0.1"; port = factorio_port; auth = false; };
|
"factorio.${domaine}" = { ip = "127.0.0.1"; port = factorio_port; auth = false; };
|
||||||
"airsonic.${domaine}" = { ip = "127.0.0.1"; port = airsonic_port; auth = false; };
|
"airsonic.${domaine}" = { ip = "127.0.0.1"; port = airsonic_port; auth = false; };
|
||||||
|
"${domaine}" = { ip = "127.0.0.1"; port = wkd_port; auth = false; };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -242,6 +244,15 @@ in
|
|||||||
listen = [ { addr = "127.0.0.1"; port = factorio_port; } ];
|
listen = [ { addr = "127.0.0.1"; port = factorio_port; } ];
|
||||||
locations = { "/" = { root = "/var/www/factorio"; }; };
|
locations = { "/" = { root = "/var/www/factorio"; }; };
|
||||||
};
|
};
|
||||||
|
"wkd" = {
|
||||||
|
listen = [ { addr = "127.0.0.1"; port = wkd_port; } ];
|
||||||
|
locations = { "/.well-known/openpgpkey/" = {
|
||||||
|
alias = "/var/lib/gnupg/wks/nyanlout.re";
|
||||||
|
extraConfig = ''
|
||||||
|
add_header Access-Control-Allow-Origin * always;
|
||||||
|
'';
|
||||||
|
}; };
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -401,7 +412,7 @@ in
|
|||||||
database = {
|
database = {
|
||||||
type = "postgres";
|
type = "postgres";
|
||||||
port = 5432;
|
port = 5432;
|
||||||
passwordFile = "/mnt/secrets/gitea_database_passwordFile";
|
passwordFile = "/var/lib/gitea/custom/conf/database_password";
|
||||||
};
|
};
|
||||||
log.level = "Warn";
|
log.level = "Warn";
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user