# gets changed, the activation phase restarts it, meaning
# the permissions of the StateDirectory get adjusted
# according to the specified group
- RemainAfterExit = true;
+ # Edit: Timers will never run because of this
+ # RemainAfterExit = true;
SuccessExitStatus = [ "0" "1" ];
User = data.user;
Group = data.group;
alert=$(date +"%F %H:%M:%S" -d "3 hours ago")
res=$(curl https://maison.bbc.bouya.org/stats.php)
-ignored_text="th_hr Exterieure th_hr Soufflage"
+ignored_text="Exterieure Soufflage Mezzanine"
-ignored_bat="^$"
-ignored="^(th_hr Exterieure|th_hr Soufflage)$"
+ignored_bat="^(Temp_Nord|Exterieure|Soufflage|Mezzanine)$"
+ignored="^(th_hr Exterieure|th_hr Soufflage|th_hr Mezzanine)$"
missing() {
echo "to_entries|[.[]|select(.value < \"$alert\" and .key != \"bat\" $1)|.key + \": \" + .value]|join(\" ; \")"
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>
''
];