mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-27 19:19:21 +03:00
Added some example code for Cloudron and Virtualmin
This commit is contained in:
parent
12a07cce8c
commit
48b5b59ec2
4 changed files with 482 additions and 3 deletions
22
integrations/cloudron/DESCRIPTION.md
Normal file
22
integrations/cloudron/DESCRIPTION.md
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
This app packages SnappyMail <upstream>2.7.3</upstream>.
|
||||
|
||||
SnappyMail is a simple, modern, lightweight & fast web-based email client.
|
||||
|
||||
### Features
|
||||
* Privacy/GDPR friendly
|
||||
* Modern user (dark mode) interface.
|
||||
* Mobile booting with only ~144 KB download
|
||||
* Complete support of IMAP and SMTP protocols including SSL and STARTTLS.
|
||||
* Sieve scripts (Filters and vacation message).
|
||||
* Minimalistic resources requirements.
|
||||
* Direct access to mail server is used (mails are not stored locally on web server).
|
||||
* Allows for adding multiple accounts to primary one.
|
||||
* Additional identities.
|
||||
* Administrative panel for configuring main options.
|
||||
* Really simple installation and update (the product is updated from admin panel).
|
||||
* Managing folders list.
|
||||
* Simple look'n'feel customization.
|
||||
* Extending functionality with plugins installed through admin panel.
|
||||
* Perfect rendering of complex HTML mails.
|
||||
* Drag'n'drop for mails and attachments.
|
||||
* Keyboard shortcuts support.
|
||||
38
integrations/cloudron/Dockerfile
Normal file
38
integrations/cloudron/Dockerfile
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
FROM cloudron/base:3.0.0@sha256:455c70428723e3a823198c57472785437eb6eab082e79b3ff04ea584faf46e92
|
||||
|
||||
RUN mkdir -p /app/code
|
||||
WORKDIR /app/code
|
||||
|
||||
# If you change the extraction below, be sure to test on scaleway
|
||||
VERSION=2.7.3
|
||||
RUN wget https://github.com/the-djmaze/snappymail/releases/download/v${VERSION}/snappymail-${VERSION}.zip -O /tmp/snappymail.zip && \
|
||||
unzip /tmp/snappymail.zip -d /app/code && \
|
||||
rm /tmp/snappymail.zip && \
|
||||
find /app/code/snappymail -type d -exec chmod 755 {} \; && \
|
||||
find /app/code/snappymail -type f -exec chmod 644 {} \; && \
|
||||
rm -rf /app/code/data && ln -s /app/data /app/code/data && \
|
||||
chown -R www-data:www-data /app/code/snappymail
|
||||
|
||||
# configure apache
|
||||
RUN rm /etc/apache2/sites-enabled/*
|
||||
RUN sed -e 's,^ErrorLog.*,ErrorLog "|/bin/cat",' -i /etc/apache2/apache2.conf
|
||||
COPY apache/mpm_prefork.conf /etc/apache2/mods-available/mpm_prefork.conf
|
||||
|
||||
RUN a2disconf other-vhosts-access-log
|
||||
ADD apache/snappymail.conf /etc/apache2/sites-enabled/snappymail.conf
|
||||
RUN echo "Listen 8000" > /etc/apache2/ports.conf
|
||||
|
||||
# mod_php config
|
||||
RUN a2enmod rewrite
|
||||
RUN crudini --set /etc/php/7.4/apache2/php.ini PHP upload_max_filesize 25M && \
|
||||
crudini --set /etc/php/7.4/apache2/php.ini PHP post_max_size 25M && \
|
||||
crudini --set /etc/php/7.4/apache2/php.ini Session session.save_path /run/snappymail/sessions && \
|
||||
crudini --set /etc/php/7.4/apache2/php.ini Session session.gc_probability 1 && \
|
||||
crudini --set /etc/php/7.4/apache2/php.ini Session session.gc_divisor 100
|
||||
|
||||
RUN ln -s /app/data/php.ini /etc/php/7.4/apache2/conf.d/99-cloudron.ini && \
|
||||
ln -s /app/data/php.ini /etc/php/7.4/cli/conf.d/99-cloudron.ini
|
||||
|
||||
ADD start.sh /app/code/start.sh
|
||||
|
||||
CMD [ "/app/code/start.sh" ]
|
||||
Loading…
Add table
Add a link
Reference in a new issue