config =
writeText "config_inc.php" ''
<?php
- $g_hostname = 'db-1.immae.eu';
- $g_db_username = 'mantisbt';
+ $g_hostname = '${env.postgresql.socket}';
+ $g_db_username = '${env.postgresql.user}';
$g_db_password = '${env.postgresql.password}';
- $g_database_name = 'mantisbt';
+ $g_database_name = '${env.postgresql.database}';
$g_db_type = 'pgsql';
$g_crypto_master_salt = '${env.master_salt}';
$g_allow_signup = OFF;
$g_allow_anonymous_login = ON;
$g_anonymous_account = 'anonymous';
- $g_phpMailer_method = PHPMAILER_METHOD_SMTP;
- $g_smtp_host = 'mail.immae.eu';
+ $g_phpMailer_method = PHPMAILER_METHOD_SENDMAIL;
+ $g_smtp_host = 'localhost';
$g_smtp_username = ''';
$g_smtp_password = ''';
$g_webmaster_email = 'webmaster@immae.eu';
ln -s ${plugins.source-integration}/Source* $out/plugins/
'';
};
- apache = {
+ apache = rec {
user = "wwwrun";
group = "wwwrun";
modules = [ "proxy_fcgi" ];
+ webappName = "tools_mantisbt";
+ root = "/run/current-system/webapps/${webappName}";
vhostConf = ''
- Alias /mantisbt "${webRoot}"
- <Directory "${webRoot}">
+ Alias /mantisbt "${root}"
+ <Directory "${root}">
DirectoryIndex index.php
<FilesMatch "\.php$">
SetHandler "proxy:unix:${phpFpm.socket}|fcgi://localhost"
Options FollowSymlinks
Require all granted
</Directory>
- <Directory "${webRoot}/admin">
+ <Directory "${root}/admin">
#Reenable during upgrade
Require all denied
</Directory>