mirror of
https://github.com/plankanban/planka.git
synced 2026-02-24 19:08:59 +03:00
Redirect HTTPS doesn’t work with Synology NAS reverse proxy to Planka container… #250
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tikok974 on GitHub (Nov 24, 2022).
I installed Planka about 2 weeks ago to test it via Docker on my Synology NAS. I tried to set up a reverse proxy to use HTTPS instead of HTTP but it doesn't work !
In HTTPS I get to the login page and when I try to log in nothing happens after validating my credentials.
However, if I do it in HTTP ...it's ok :(
The proxy on my NAS captures HTTPS on port 3017 and redirects HTTP on port 3000 to the localhost (NAS is Docker host).
The Docker container has a port forwarding setting (port 3000 for the host to port 1337 for the container)
Here is my docker-compose if it can help to find what is wrong
`version: '3'
services:
planka:
container_name: my-planka
image: ghcr.io/plankanban/planka:latest
command: >
bash -c
"for i in
seq 1 30; do./start.sh &&
s=
? && break || s=?;echo "Tried $$i times. Waiting 5 seconds...";
sleep 5;
done; (exit $$s)"
restart: unless-stopped
volumes:
- user-avatars:/app/public/user-avatars
- project-background-images:/app/public/project-background-images
- attachments:/app/private/attachments
- /volume1/docker/planka/logs/:/app/logs/
ports:
- 3000:1337
networks:
netplanka:
ipv4_address: 192.168.12.4
environment:
- BASE_URL=https://myserver.mydomain:3017
- TRUST_PROXY=0
- DATABASE_URL=postgresql://postgres:xxxxxxxx@xxxxxxx@192.168.12.5/planka
- SECRET_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
depends_on:
- postgres
postgres:
container_name: my-plankapostgres
image: postgres:14-alpine
restart: unless-stopped
volumes:
- db-data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=planka
- POSTGRES_HOST_AUTH_METHOD=trust
- POSTGRES_PASSWORD=XXXXXXXXXXX
networks:
netplanka:
ipv4_address: 192.168.12.5
networks:
netplanka:
name: netplanka
driver: bridge
ipam:
config:
- subnet: 192.168.12.0/27
gateway: 192.168.12.1
volumes:
user-avatars:
project-background-images:
attachments:
db-data:`
I attach the capture from my browser (developer mode)

I tried to change BASE_URL to the address I use in my browser (http://myserver.mydomain:3000) but it doesn't work !
Many thanks
Originally posted by @tikok974 in https://github.com/plankanban/planka/issues/111#issuecomment-1326608078
@tikok974 commented on GitHub (Nov 25, 2022):
Hi everybody,
Finally I received an answer here
Thanks for @mzch for his help
I added these parameters as shown in my screenshot below
...and put the real URL (the one i enter in my browser) in the BASE_URL variable of Planka and it works !
I hope it will also help other people ;)
Thanks