adonis/config/http/tor-snowflake.nix
toufic ar 1ee92fda8d
All checks were successful
/ deploy (push) Successful in 30s
php-fpm for tor.toufy.me
2026-02-05 21:28:29 +02:00

13 lines
365 B
Nix

{config, ...}: let
torDomain = "tor.${config.customOps.domain.fqdn}";
in {
services.nginx.virtualHosts.${torDomain} = {
root = "/var/www/${torDomain}";
forceSSL = true;
enableACME = true;
locations."~ \\.php$".extraConfig = ''
fastcgi_pass unix:${config.services.phpfpm.pools.mypool.socket};
fastcgi_index index.php;
'';
};
}