From 5071b3131d3221be78674276b1c1636b3fc7732c Mon Sep 17 00:00:00 2001 From: Vladimir Hodakov Date: Wed, 8 Jan 2025 21:23:05 +0400 Subject: [PATCH] Pass REMOTE_ADDR from upstream proxy --- README.md | 3 +++ config/Caddyfile | 1 + 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index d71277f..d7093e7 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,9 @@ This is a heavily modified fork of [selim13's docker-phpbb image](https://github You can find an example of forum running using this image at [ks.fhs.sh](https://ks.fhs.sh). +Note: this image expects that you run it behind another reverse proxy and does _not_ handle HTTPS automatically. Use it +behind another instance of caddy, for example. + # Supported tags and respective `Dockerfile` links - [`3`,`3.3`, `3.3.14`, `latest`](https://source.hodakov.me/hdkv/docker-phpbb/src/branch/main/Dockerfile) bundled with PHP 8 diff --git a/config/Caddyfile b/config/Caddyfile index 413d16e..f181ad8 100644 --- a/config/Caddyfile +++ b/config/Caddyfile @@ -10,6 +10,7 @@ php_fastcgi unix//run/php-fpm.sock { trusted_proxies private_ranges + env REMOTE_ADDR {client_ip} } file_server