enable = lib.mkEnableOption "Enable commento website";
};
config = lib.mkIf cfg.enable {
- secrets.keys = [
- {
- dest = "commento/env";
- permission = "0400";
+ secrets.keys = {
+ "commento/env" = {
+ permissions = "0400";
text = ''
COMMENTO_ORIGIN=https://commento.immae.eu/
COMMENTO_PORT=${port}
COMMENTO_SMTP_PASSWORD=${env.smtp.password}
COMMENTO_SMTP_FROM_ADDRESS=${env.smtp.email}
'';
- }
- ];
+ };
+ };
services.websites.env.tools.vhostConfs.commento = {
certName = "eldiron";