This commit is contained in:
Alexandre LUCAZEAU 2025-01-13 13:32:44 +00:00
parent d49d94fa67
commit f6a76b1f8e
3 changed files with 35 additions and 1 deletions

View File

@ -4,7 +4,7 @@
networking.firewall = {
allowPing = true;
# allowed TCP range
allowedTCPPorts = [ 22 80 443 9002 2021 8096 8920];
allowedTCPPorts = [ 22 80 443 9002 2021 8096 8920 8082];
};
services.fail2ban = {
enable = true;

View File

@ -3,9 +3,27 @@ let
caddyDir = "/var/lib/caddy";
in
{
services.seafile.enable = true;
services.seafile.adminEmail = "lucazeau.alexandre@gmail.com" ;
services.seafile.initialAdminPassword = "Herzleid01." ;
services.seafile.ccnetSettings.General.SERVICE_URL = "https://file.atlanticaweb.fr";
services.seafile.seafileSettings.fileserver.host = "0.0.0.0";
services.seafile.seahubExtraConf = "SERVICE_URL = 'http://file.atlanticaweb.fr:8000'";
services.drone-ci = {
enable = true;
serverHost = "ci.atlanticaweb.fr"; # Remplacez par votre domaine.
serverSecret = "votre-clé-secrète"; # Clé pour sécuriser Drone.
};
services.caddy = {
enable = true;
email = "lucazeau.alexandre@gmail.com";
# virtualHosts."https://home.atlanticaweb.fr" = {
# extraConfig = ''
# root * /var/lib/wordpress/home.atlanticaweb.fr
# file_server
# php_fastcgi unix/var/run/phpfpm/wordpress-home.atlanticaweb.fr.sock
# '';
# };
extraConfig = ''
storage file_system {
@ -16,6 +34,9 @@ in
encode gzip
reverse_proxy http://localhost:3001
}
https://file.atlanticaweb.fr {
reverse_proxy http://127.0.0.1:8082
}
https://films.atlanticaweb.fr {
encode gzip
reverse_proxy http://localhost:8096
@ -65,6 +86,8 @@ in
services = {
jellyfin.enable = true;
shiori.enable = true;
technitium-dns-server.enable = true;
technitium-dns-server.openFirewall = true;
microbin = {
enable = true;
settings = {
@ -75,5 +98,15 @@ in
MICROBIN_PUBLIC_PATH = "https://bin.atlanticaweb.fr";
};
};
#wordpress.sites."home.atlanticaweb.fr" = {
# languages = [ pkgs.wordpressPackages.languages.fr_FR ];
# settings = {
# WPLANG = "fr_FR";
# FORCE_SSL_ADMIN = true;
# };
# extraConfig = ''
# $_SERVER['HTTPS']='on';
# '';
#};
};
}

View File

@ -19,6 +19,7 @@
};
settings.other = {
ENABLE_FEED = true;
ENABLE_SITEMAP = true;
};
dump.enable = true;
dump.backupDir = "/srv/backup/gitea";