6 varDir = "/var/lib/rompr";
8 install -m 0755 -o ${apache.user} -g ${apache.group} -d ${varDir} \
9 ${varDir}/prefs ${varDir}/albumart ${varDir}/phpSessions
15 modules = [ "headers" "mime" "proxy_fcgi" ];
16 webappName = "tools_rompr";
17 root = "/run/current-system/webapps/${webappName}";
18 vhostConf = socket: ''
22 Options Indexes FollowSymLinks
23 DirectoryIndex index.php
28 ErrorDocument 404 /rompr/404.php
29 AddType image/x-icon .ico
32 SetHandler "proxy:unix:${socket}|fcgi://localhost"
36 <Directory ${root}/albumart/small>
37 Header Set Cache-Control "max-age=0, no-store"
38 Header Set Cache-Control "no-cache, must-revalidate"
41 <Directory ${root}/albumart/asdownloaded>
42 Header Set Cache-Control "max-age=0, no-store"
43 Header Set Cache-Control "no-cache, must-revalidate"
46 <LocationMatch "^/rompr">
48 Require ldap-group cn=users,cn=mpd,ou=services,dc=immae,dc=eu
53 basedir = builtins.concatStringsSep ":" [ webRoot varDir ];
55 "listen.owner" = apache.user;
56 "listen.group" = apache.group;
58 "pm.max_children" = "60";
59 "pm.process_idle_timeout" = "60";
61 # Needed to avoid clashes in browser cookies (same domain)
62 "php_value[session.name]" = "RomprPHPSESSID";
63 "php_admin_value[open_basedir]" = "${basedir}:/tmp";
64 "php_admin_value[session.save_path]" = "${varDir}/phpSessions";
65 "php_flag[magic_quotes_gpc]" = "Off";
66 "php_flag[track_vars]" = "On";
67 "php_flag[register_globals]" = "Off";
68 "php_admin_flag[allow_url_fopen]" = "On";
69 "php_value[include_path]" = "${webRoot}";
70 "php_admin_value[upload_tmp_dir]" = "${varDir}/prefs";
71 "php_admin_value[post_max_size]" = "32M";
72 "php_admin_value[upload_max_filesize]" = "32M";
73 "php_admin_value[memory_limit]" = "256M";