1 { lib, phpbb, gnused }:
3 varDir = "/var/lib/phpbb";
7 if [ ! -d ${varDir} ]; then
8 install -m 0755 -o ${apache.user} -g ${apache.user} -d ${varDir}
9 cp -a ${phpbb}/vars/* ${varDir}
10 chown -R ${apache.user}:${apache.user} ${varDir}
14 chatonsHostingProperties = {
15 file.datetime = "2022-08-21T22:50:00";
18 description = "Forum software";
19 website = "https://tools.immae.eu/forum";
20 logo = "https://www.phpbb.com/favicon.ico";
23 status.description = "OK";
24 registration.load = "OPEN";
25 install.type = "PACKAGE";
32 modules = [ "proxy_fcgi" ];
34 vhostConf = socket: ''
35 Alias /forum "${root}"
37 DirectoryIndex index.php
39 SetHandler "proxy:unix:${socket}|fcgi://localhost"
43 Options FollowSymlinks
46 # add instal to the list after install
47 <LocationMatch "^/(cache|files|install|store)>
53 serviceDeps = [ "postgresql.service" ];
54 basedir = builtins.concatStringsSep ":" [ "/run/wrappers/bin/sendmail" phpbb varDir ];
56 "listen.owner" = apache.user;
57 "listen.group" = apache.group;
59 "pm.max_children" = "60";
60 "pm.process_idle_timeout" = "60";
62 # Needed to avoid clashes in browser cookies (same domain)
63 "php_value[session.name]" = "PhpBBPHPSESSID";
64 "php_admin_value[open_basedir]" = "${basedir}:/tmp";
65 "php_admin_value[session.save_handler]" = "redis";
66 "php_admin_value[session.save_path]" = "'unix:///run/redis-php-sessions/redis.sock?persistent=1&prefix=Tools:PhpBB:'";