grocy = pkgs.callPackage ./grocy.nix {
inherit (pkgs.webapps) grocy;
};
+ webhooks = pkgs.callPackage ./webhooks.nix {
+ env = config.myEnv.tools.webhooks;
+ };
+
+ landing = pkgs.callPackage ./landing.nix {};
cfg = config.myServices.websites.tools.tools;
pcfg = config.services.phpfpm.pools;
++ shaarli.keys
++ ttrss.keys
++ wallabag.keys
- ++ yourls.keys;
+ ++ yourls.keys
+ ++ webhooks.keys;
services.duplyBackup.profiles = {
dokuwiki = dokuwiki.backups;
RedirectMatch 301 ^/roundcube(.*)$ https://mail.immae.eu/roundcube$1
RedirectMatch 301 ^/jappix(.*)$ https://im.immae.fr/converse
+ Alias /landing ${landing}
+ <Directory "${landing}">
+ DirectoryIndex index.html
+ AllowOverride None
+ Require all granted
+
+ <FilesMatch "\.php$">
+ SetHandler "proxy:unix:${pcfg.tools.socket}|fcgi://localhost"
+ </FilesMatch>
+ </Directory>
+
<Directory "/var/lib/ftp/tools.immae.eu">
DirectoryIndex index.php index.htm index.html
AllowOverride all
<FilesMatch "\.php$">
SetHandler "proxy:unix:${pcfg.tools.socket}|fcgi://localhost"
</FilesMatch>
+
+ RewriteEngine On
+ RewriteCond ${landing}%{REQUEST_URI} -f
+ RewriteRule ^(.*)$ /landing/$1 [L]
+ RewriteRule ^$ /landing/ [L]
</Directory>
''
(adminer.apache.vhostConf pcfg.adminer.socket)
(ldap.apache.vhostConf pcfg.ldap.socket)
(kanboard.apache.vhostConf pcfg.kanboard.socket)
(grocy.apache.vhostConf pcfg.grocy.socket)
+ ''
+ Alias /paste /var/lib/fiche
+ <Directory "/var/lib/fiche">
+ DirectoryIndex index.txt index.html
+ AllowOverride None
+ Require all granted
+ Options -Indexes
+ </Directory>
+
+ Alias /BIP39 /var/lib/buildbot/outputs/bip39
+ <Directory "/var/lib/buildbot/outputs/bip39">
+ DirectoryIndex index.html
+ AllowOverride None
+ Require all granted
+ </Directory>
+
+ Alias /webhooks ${config.secrets.location}/webapps/webhooks
+ <Directory "${config.secrets.location}/webapps/webhooks">
+ Options -Indexes
+ Require all granted
+ AllowOverride None
+ <FilesMatch "\.php$">
+ SetHandler "proxy:unix:${pcfg.tools.socket}|fcgi://localhost"
+ </FilesMatch>
+ </Directory>
+ ''
];
};
# Needed to avoid clashes in browser cookies (same domain)
"php_value[session.name]" = "ToolsPHPSESSID";
- "php_admin_value[open_basedir]" = "/run/wrappers/bin/sendmail:/var/lib/ftp/tools.immae.eu:/tmp";
+ "php_admin_value[open_basedir]" = builtins.concatStringsSep ":" [
+ "/run/wrappers/bin/sendmail" "/var/lib/ftp/tools.immae.eu"
+ landing "/tmp" "${config.secrets.location}/webapps/webhooks"
+ ];
+ };
+ phpEnv = {
+ CONTACT_EMAIL = config.myEnv.tools.contact;
};
};
devtools = {
user = "wwwrun";
group = "wwwrun";
settings = ldap.phpFpm.pool;
+ phpPackage = pkgs.php72;
};
kanboard = {
user = "wwwrun";
ldap = ldap.activationScript;
};
- myServices.websites.webappDirs = {
+ services.websites.webappDirs = {
_adminer = adminer.webRoot;
"${dokuwiki.apache.webappName}" = dokuwiki.webRoot;
"${ldap.apache.webappName}" = "${ldap.webRoot}/htdocs";
restart = true;
paths = [ "/var/secrets/webapps/tools-wallabag" ];
};
+
+ services.fiche = {
+ enable = true;
+ port = config.myEnv.ports.fiche;
+ domain = "tools.immae.eu/paste";
+ https = true;
+ };
};
}