php_admin_value[open_basedir] = "${varDir}"
'';
phpOptions = config.services.phpfpm.phpOptions + ''
+ date.timezone = 'Europe/Paris'
extension=${pkgs.php}/lib/php/extensions/mysqli.so
'';
};
root = varDir;
extraConfig = [
''
+ Alias /.well-known/acme-challenge ${config.security.acme2.certs.papa.webroot}/.well-known/acme-challenge
RedirectMatch 301 ^/((?!(\.well-known|add.php).*$).*)$ https://maison.bbc.bouya.org/$1
<Directory ${varDir}>
DirectoryIndex index.php index.htm index.html
<FilesMatch "\.php$">
SetHandler "proxy:unix:/run/phpfpm/papa_maison_bbc.sock|fcgi://localhost"
</FilesMatch>
+ </Directory>
+ <Directory "${config.security.acme2.certs.papa.webroot}">
+ Options Indexes FollowSymLinks
+ AllowOverride None
+ Require all granted
</Directory>
''
];