{ env, wallabag, mylibs, config }:
rec {
varDir = "/var/lib/wallabag";
keys."webapps/tools-wallabag" = {
user = apache.user;
group = apache.group;
permissions = "0400";
text = ''
# This file is auto-generated during the composer install
parameters:
database_driver: pdo_pgsql
database_driver_class: Wallabag\CoreBundle\Doctrine\DBAL\Driver\CustomPostgreSQLDriver
database_host: ${env.postgresql.socket}
database_port: ${env.postgresql.port}
database_name: ${env.postgresql.database}
database_user: ${env.postgresql.user}
database_password: ${env.postgresql.password}
database_path: null
database_table_prefix: wallabag_
database_socket: null
database_charset: utf8
domain_name: https://tools.immae.eu/wallabag
mailer_transport: sendmail
mailer_host: 127.0.0.1
mailer_user: null
mailer_password: null
locale: fr
secret: ${env.secret}
twofactor_auth: true
twofactor_sender: wallabag@tools.immae.eu
fosuser_registration: false
fosuser_confirmation: true
from_email: wallabag@tools.immae.eu
rss_limit: 50
rabbitmq_host: localhost
rabbitmq_port: 5672
rabbitmq_user: guest
rabbitmq_password: guest
rabbitmq_prefetch_count: 10
redis_scheme: unix
redis_host: null
redis_port: null
redis_path: ${env.redis.socket}
redis_password: null
sites_credentials: { }
ldap_enabled: true
ldap_host: ${env.ldap.host}
ldap_port: 636
ldap_tls: false
ldap_ssl: true
ldap_bind_requires_dn: true
ldap_base: '${env.ldap.base}'
ldap_manager_dn: '${env.ldap.dn}'
ldap_manager_pw: ${env.ldap.password}
ldap_filter: '${env.ldap.filter}'
ldap_admin_filter: '${env.ldap.admin_filter}'
ldap_username_attribute: uid
ldap_email_attribute: mail
ldap_name_attribute: cn
ldap_enabled_attribute: null
services:
swiftmailer.mailer.default.transport:
class: Swift_SendmailTransport
arguments: ['/run/wrappers/bin/sendmail -bs']
'';
};
chatonsProperties = {
file.datetime = "2022-08-21T22:50:00";
service = {
name = "Wallabag";
description = "wallabag is a self hostable application for saving web pages: Save and classify articles. Read them later. Freely.";
website = "https://tools.immae.eu/wallabag/";
logo = "https://tools.immae.eu/wallabag/wallassets/themes/_global/img/appicon/apple-touch-icon-120.png";
status.level = "OK";
status.description = "OK";
registration."" = ["MEMBER" "CLIENT"];
registration.load = "OPEN";
install.type = "PACKAGE";
};
software = {
name = "Wallabag";
website = "https://wallabag.org/en";
license.url = "https://github.com/wallabag/wallabag/blob/master/COPYING.md";
license.name = "MIT License";
version = webappDir.version;
source.url = "https://github.com/wallabag/wallabag";
modules = "ldap-patch";
};
};
webappDir = wallabag.override { ldap = true; wallabag_config = config.secrets.fullPaths."webapps/tools-wallabag"; };
activationScript = ''
install -m 0755 -o ${apache.user} -g ${apache.group} -d ${varDir} \
${varDir}/var ${varDir}/data/db ${varDir}/assets/images
'';
webRoot = "${webappDir}/web";
# Domain migration: Table wallabag_entry contains whole
# https://tools.immae.eu/wallabag domain name in preview_picture
apache = rec {
user = "wwwrun";
group = "wwwrun";
modules = [ "proxy_fcgi" ];
root = webRoot;
vhostConf = socket: ''
Alias /wallabag "${root}"