Skip to content

Commit 6640f59

Browse files
committed
document how-to setup RC behind traefik on a custom subpath
1 parent a6d15d8 commit 6640f59

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

docs/third_party/roundcube/third_party-roundcube.en.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@
308308
ofelia.job-exec.roundcube_cleandb.command: "/bin/bash -c \"[ -f /var/www/html/bin/cleandb.sh ] && /var/www/htm/bin/cleandb.sh\""
309309
```
310310

311-
## Plugins
311+
### Plugins
312312

313313
To add Plugins you have to specify them inside of the environment variables
314314
`ROUNDCUBEMAIL_PLUGINS` AND
@@ -322,7 +322,7 @@
322322
ROUNDCUBEMAIL_COMPOSER_PLUGINS: "foorschtbar/dovecot_client_ip:~2"
323323
```
324324

325-
## Optional: Reverse Proxy
325+
### Optional: Reverse Proxy
326326

327327
To put Roundcube behind a Reverse Proxy like traefik you must add this to your `docker-compose.yml`file
328328

@@ -373,6 +373,20 @@
373373
374374
Now your Roundcube instance can be securily accessed from `https://roundcube.example.com`.
375375

376+
If you want to access your Roundcube Instance on a subpath like `/rc`, you will need to add
377+
`ROUNDCUBEMAIL_REQUEST_PATH=/rc` to your environment, if that doesn't work, try the following:
378+
Create `data/web/conf/nginx/site.roundcube.custom`
379+
```nginx
380+
location /rc/ { # /rc: your subpath
381+
proxy_pass http://roundcube:80/; # Replace with the correct upstream
382+
proxy_set_header Host $host;
383+
proxy_set_header X-Real-IP $remote_addr;
384+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
385+
proxy_set_header X-Forwarded-Proto $scheme;
386+
proxy_redirect off;
387+
}
388+
```
389+
376390
## Optional extra functionality
377391

378392
### Enable change password function in Roundcube

0 commit comments

Comments
 (0)