Problems reaching Planka via Cloudflare Tunnel #363

Closed
opened 2026-02-04 18:43:22 +03:00 by OVERLORD · 16 comments
Owner

Originally created by @PrintLukas on GitHub (Oct 9, 2023).

URL
Hi,

I installed Planka on a Server and would like to make it reachable via Cloudflare-Tunnels. I'm not sure, why, but i can not reach it, although the connection seems to be ok.

Thank you for any help...

Originally created by @PrintLukas on GitHub (Oct 9, 2023). ![URL](https://github.com/plankanban/planka/assets/106995472/108b85b5-e72b-4e2c-9764-a8e2836cbd52) Hi, I installed Planka on a Server and would like to make it reachable via Cloudflare-Tunnels. I'm not sure, why, but i can not reach it, although the connection seems to be ok. Thank you for any help...
Author
Owner

@daniel-hiller commented on GitHub (Oct 9, 2023):

You have to change the baseURL in the docker-compose.yml to match the domain you want to use.

If manual installed, change it in the .env file

@daniel-hiller commented on GitHub (Oct 9, 2023): You have to change the baseURL in the docker-compose.yml to match the domain you want to use. If manual installed, change it in the .env file
Author
Owner

@PrintLukas commented on GitHub (Oct 9, 2023):

Already done

@PrintLukas commented on GitHub (Oct 9, 2023): Already done
Author
Owner

@daniel-hiller commented on GitHub (Oct 9, 2023):

Make sure cloudflare supports websocket connections

Open the DEV tools in your browser and check for errors

@daniel-hiller commented on GitHub (Oct 9, 2023): Make sure cloudflare supports websocket connections Open the DEV tools in your browser and check for errors
Author
Owner

@PrintLukas commented on GitHub (Oct 10, 2023):

The Error 404 occured. Cloudflare should support websocket connections

@PrintLukas commented on GitHub (Oct 10, 2023): The Error 404 occured. Cloudflare should support websocket connections
Author
Owner

@daniel-hiller commented on GitHub (Oct 13, 2023):

Please send a screenshot from the errors in dev tools

@daniel-hiller commented on GitHub (Oct 13, 2023): Please send a screenshot from the errors in dev tools
Author
Owner

@PrintLukas commented on GitHub (Oct 13, 2023):

So http is going well in the Moment. https doesnt work like before.

@PrintLukas commented on GitHub (Oct 13, 2023): So http is going well in the Moment. https doesnt work like before.
Author
Owner

@PrintLukas commented on GitHub (Oct 13, 2023):

grafik

@PrintLukas commented on GitHub (Oct 13, 2023): ![grafik](https://github.com/plankanban/planka/assets/106995472/8795243c-4897-4f2b-a7ee-1d0b8477068d)
Author
Owner

@hungry-bogart commented on GitHub (Oct 14, 2023):

I'm having the same issue with Cloudflare. I can sometimes get the login page to show up but it says server connection failed.

It appears from my errors and logs in the inspector that it is receiving mixed content in the request. If the main page is loading via https and is secure when the token request goes over http it blocks it for security reasons. I can confirm that the plain text password will be displayed in the console if you look for it.

So, my guess is that the Cloudflare tunnel needs to be set as https. The token will probably only come back from the api if it is https all the way through the post/get request.

I tried changing the config to https, but I don't remember it working. I'll try again and see if I can get it to work.

planka2
planka3
planka

@hungry-bogart commented on GitHub (Oct 14, 2023): I'm having the same issue with Cloudflare. I can sometimes get the login page to show up but it says server connection failed. It appears from my errors and logs in the inspector that it is receiving mixed content in the request. If the main page is loading via https and is secure when the token request goes over http it blocks it for security reasons. I can confirm that the **plain text password** will be displayed in the console if you look for it. So, my guess is that the Cloudflare tunnel needs to be set as https. The token will probably only come back from the api if it is https all the way through the post/get request. I tried changing the config to https, but I don't remember it working. I'll try again and see if I can get it to work. ![planka2](https://github.com/plankanban/planka/assets/105610230/e41c2d97-4fd1-4d13-b1a4-d491b30b0a1e) ![planka3](https://github.com/plankanban/planka/assets/105610230/b549eb08-e4c5-42d0-909f-aabd218c898c) ![planka](https://github.com/plankanban/planka/assets/105610230/ed94c259-a6c5-4600-877e-025b35132641)
Author
Owner

@daniel-hiller commented on GitHub (Oct 14, 2023):

I have to wait until the domain is connected to cloudflare, than i can test by myself

@hungry-bogart

This happedns only if the Baseurl is not set correctly
You have to set the Baseurl to the address you want to use with cloudflare including https

image

In the tunnel itself you have to use http://your-local-ip:3000 like http://192.168.0.100:3000

image

@daniel-hiller commented on GitHub (Oct 14, 2023): I have to wait until the domain is connected to cloudflare, than i can test by myself @hungry-bogart This happedns only if the Baseurl is not set correctly You have to set the Baseurl to the address you want to use with cloudflare including https ![image](https://github.com/plankanban/planka/assets/46579393/fcc0840f-b1e0-40ba-953f-05b86c71068d) In the tunnel itself you have to use http://your-local-ip:3000 like http://192.168.0.100:3000 ![image](https://github.com/plankanban/planka/assets/46579393/d37aecef-6564-417a-b8a6-31970d7ed5d5)
Author
Owner

@hungry-bogart commented on GitHub (Oct 14, 2023):

@daniel-hiller

I can confirm this works. I added your example into the environment section of the docker-compose file.

BASE_URL=https://my.cloudflare-domain.com

In the tunnel entries on Cloudflare just like the example you gave in the image.

subdomain/domain=my.cloudflare-domain.com
service type=HTTP
url=yourlocalIP:port

Thanks for clarifying this.

@hungry-bogart commented on GitHub (Oct 14, 2023): @daniel-hiller I can confirm this works. I added your example into the environment section of the docker-compose file. BASE_URL=https://my.cloudflare-domain.com In the tunnel entries on Cloudflare just like the example you gave in the image. subdomain/domain=my.cloudflare-domain.com service type=HTTP url=yourlocalIP:port Thanks for clarifying this.
Author
Owner

@PrintLukas commented on GitHub (Oct 16, 2023):

image

@PrintLukas commented on GitHub (Oct 16, 2023): ![image](https://github.com/plankanban/planka/assets/106995472/51ec650c-fb0e-472f-92d7-af4677d50564)
Author
Owner

@PrintLukas commented on GitHub (Oct 16, 2023):

Doesn't work for me... I adapted the Base-URL.

@PrintLukas commented on GitHub (Oct 16, 2023): Doesn't work for me... I adapted the Base-URL.
Author
Owner

@PrintLukas commented on GitHub (Oct 16, 2023):

Alright i got it. Restarted the service and it worked. Thank you!

@PrintLukas commented on GitHub (Oct 16, 2023): Alright i got it. Restarted the service and it worked. Thank you!
Author
Owner

@PrintLukas commented on GitHub (Oct 16, 2023):

is there any documentation, how to implement an Autostart-Script on an Ubuntu-VM?

@PrintLukas commented on GitHub (Oct 16, 2023): is there any documentation, how to implement an Autostart-Script on an Ubuntu-VM?
Author
Owner

@hungry-bogart commented on GitHub (Oct 16, 2023):

Lukas there's a lot of documentation on that particular topic. The most common methods are setting a cron job. I'm sharing this link with you as a starting point.

https://www.tecmint.com/auto-execute-linux-scripts-during-reboot-or-startup/

@hungry-bogart commented on GitHub (Oct 16, 2023): Lukas there's a lot of documentation on that particular topic. The most common methods are setting a cron job. I'm sharing this link with you as a starting point. https://www.tecmint.com/auto-execute-linux-scripts-during-reboot-or-startup/
Author
Owner

@daniel-hiller commented on GitHub (Oct 16, 2023):

Sure, here in our docs

https://docs.planka.cloud/docs/Configuration/Planka%20as%20service

@daniel-hiller commented on GitHub (Oct 16, 2023): Sure, here in our docs https://docs.planka.cloud/docs/Configuration/Planka%20as%20service
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/planka#363