Skip to content
Snippets Groups Projects
Commit 7e834b0a authored by ale's avatar ale
Browse files

Run a php-hardened roundcube

parent 8174cae9
No related branches found
No related tags found
1 merge request!190Draft: Run hardened PHP
Pipeline #38637 failed
...@@ -11,6 +11,8 @@ ...@@ -11,6 +11,8 @@
description: Encryption key for Roundcube sessions description: Encryption key for Roundcube sessions
type: binary type: binary
length: 24 length: 24
- name: roundcube_snuffleupagus_secret
length: 36
- name: spamassassin_db_password - name: spamassassin_db_password
description: MySQL password for the Spamassassin user description: MySQL password for the Spamassassin user
......
...@@ -317,6 +317,11 @@ ...@@ -317,6 +317,11 @@
with_filetree: "templates/roundcube/" with_filetree: "templates/roundcube/"
when: item.state == 'file' when: item.state == 'file'
- name: Install Roundcube Snuffleupagus config
copy:
content: 'sp.global.secret_key("{{ roundcube_snuffleupagus_secret }}");\n'
dest: "/etc/roundcube/snuffleupagus.conf"
- name: Install default empty sieve filter for Roundcube - name: Install default empty sieve filter for Roundcube
copy: copy:
src: empty.sieve src: empty.sieve
......
...@@ -43,10 +43,11 @@ mail-backend: ...@@ -43,10 +43,11 @@ mail-backend:
- name: keystore - name: keystore
containers: containers:
- name: http - name: http
image: registry.git.autistici.org/ai3/docker/roundcube:master image: registry.git.autistici.org/ai3/docker/roundcube:hardening
port: 8084 port: 8084
volumes: volumes:
- /etc/roundcube: /etc/roundcube - /etc/roundcube: /etc/roundcube
- /etc/roundcube/snuffleupagus.conf: /etc/php/snuffleupagus/roundcube.rules
- /etc/sso/public.key: /etc/sso/public.key - /etc/sso/public.key: /etc/sso/public.key
- /var/lib/roundcube: /data - /var/lib/roundcube: /data
env: env:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment