dovecot lmtp

This commit is contained in:
bogale 2026-09-27 16:10:50 +09:00
commit 41a59e7d5c
3 changed files with 74 additions and 50 deletions

View file

@ -16,8 +16,8 @@
in {
postgresqlBackup = {
enable = true;
compression = "none";
databases = [ "php" "forgejo" "vaultwarden" ];
compression = "zstd";
databases = [ "php" "vaultwarden" ];
};
postgresql = {
enable = true;
@ -30,7 +30,12 @@
forgejo = {
enable = true;
database.type = "postgres";
dump = {
enable = true;
type = "tar.zst";
};
settings.server = {
SSH_PORT = 2235;
HTTP_PORT = 8039;
ROOT_URL = "https://bogaledev.ru/git/";
};
@ -63,6 +68,7 @@
};
nginx.virtualHosts."bogaledev.ru" = let
phpPool = ''
index index.php index.html;
location ~ \.php$ {
fastcgi_pass unix:${config.services.phpfpm.pools.php.socket};
}
@ -85,15 +91,9 @@
add_header X-Content-Type-Options "nosniff" always;
'';
locations = {
"/".extraConfig = phpPool;
"/git/".proxyPass = "http://127.0.0.1:8039/";
"/" = {
extraConfig = phpPool;
index = "index.php index.html";
};
"/local/" = {
extraConfig = "${phpPool} ${localNetworks}";
index = "index.php index.html";
};
"/local/".extraConfig = "${phpPool} ${localNetworks}";
"/local/net/".extraConfig = ''
allow fc01::/64;
allow 10.1.0.0/16;