aboutsummaryrefslogtreecommitdiffstats
path: root/docker/php/Dockerfile
diff options
context:
space:
mode:
authorThomas Vanbesien <tvanbesi@proton.me>2026-03-21 21:35:51 +0100
committerThomas Vanbesien <tvanbesi@proton.me>2026-03-21 21:35:51 +0100
commitbc54c8c31e7f50a7a365f9b4d22fe8c74a29f61a (patch)
tree73a88384b9e472386d244119a0b4e4aa028c8b32 /docker/php/Dockerfile
parentd1ef15fa39935bfa0420c5ac2b8c269e294c9a6d (diff)
downloadcamagru-bc54c8c31e7f50a7a365f9b4d22fe8c74a29f61a.tar.gz
camagru-bc54c8c31e7f50a7a365f9b4d22fe8c74a29f61a.zip
Add user authentication with email verification and password reset
Implements registration, login/logout, email verification via token, and password reset flow. Includes CSRF protection, flash messages, MailPit for dev email testing, and security docs in README.
Diffstat (limited to 'docker/php/Dockerfile')
-rw-r--r--docker/php/Dockerfile10
1 files changed, 10 insertions, 0 deletions
diff --git a/docker/php/Dockerfile b/docker/php/Dockerfile
index 8626073..375e3a7 100644
--- a/docker/php/Dockerfile
+++ b/docker/php/Dockerfile
@@ -9,6 +9,16 @@ RUN apt-get update && apt-get install -y \
&& docker-php-ext-install -j$(nproc) gd pdo_mysql \
&& rm -rf /var/lib/apt/lists/*
+# Tell PHP to use msmtp as sendmail, and configure msmtp to relay through mailpit
+RUN echo "sendmail_path = /usr/bin/msmtp -t" > /usr/local/etc/php/conf.d/mail.ini
+
+RUN echo "account default\n\
+host mailpit\n\
+port 1025\n\
+from noreply@camagru.local\n\
+auth off\n\
+tls off" > /etc/msmtprc
+
RUN echo "upload_max_filesize = 10M" > /usr/local/etc/php/conf.d/uploads.ini \
&& echo "post_max_size = 10M" >> /usr/local/etc/php/conf.d/uploads.ini