mirror of
https://github.com/plankanban/planka.git
synced 2026-02-25 03:14:50 +03:00
Problems reaching Planka via Cloudflare Tunnel #363
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 @PrintLukas on GitHub (Oct 9, 2023).
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...
@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
@PrintLukas commented on GitHub (Oct 9, 2023):
Already done
@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
@PrintLukas commented on GitHub (Oct 10, 2023):
The Error 404 occured. Cloudflare should support websocket connections
@daniel-hiller commented on GitHub (Oct 13, 2023):
Please send a screenshot from the errors in dev tools
@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):
@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.
@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
In the tunnel itself you have to use http://your-local-ip:3000 like http://192.168.0.100:3000
@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.
@PrintLukas commented on GitHub (Oct 16, 2023):
@PrintLukas commented on GitHub (Oct 16, 2023):
Doesn't work for me... I adapted the Base-URL.
@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):
is there any documentation, how to implement an Autostart-Script on an Ubuntu-VM?
@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/
@daniel-hiller commented on GitHub (Oct 16, 2023):
Sure, here in our docs
https://docs.planka.cloud/docs/Configuration/Planka%20as%20service