define( 'YOURLS_DB_USER', '${env.mysql.user}' );
define( 'YOURLS_DB_PASS', '${env.mysql.password}' );
define( 'YOURLS_DB_NAME', '${env.mysql.database}' );
- define( 'YOURLS_DB_HOST', 'db-1.immae.eu' );
+ define( 'YOURLS_DB_HOST', '${env.mysql.host}' );
define( 'YOURLS_DB_PREFIX', 'yourls_' );
- define( 'YOURLS_SITE', 'http://tools.immae.eu/url' );
+ define( 'YOURLS_SITE', 'https://tools.immae.eu/url' );
define( 'YOURLS_HOURS_OFFSET', 0 );
define( 'YOURLS_LANG', ''' );
define( 'YOURLS_UNIQUE_URLS', true );
)}
'';
});
- apache = {
+ apache = rec {
user = "wwwrun";
group = "wwwrun";
modules = [ "proxy_fcgi" ];
+ webappName = "tools_yourls";
+ root = "/run/current-system/webapps/${webappName}";
vhostConf = ''
- Alias /url "${webRoot}"
- <Directory "${webRoot}">
+ Alias /url "${root}"
+ <Directory "${root}">
<FilesMatch "\.php$">
SetHandler "proxy:unix:${phpFpm.socket}|fcgi://localhost"
</FilesMatch>