-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Getting error ERR_TOO_MANY_REDIRECTS #3432
Comments
@diogo24m By default, Cloudflare is configured to use a flexible SSL/TLS strategy, which means that connections between Cloudflare and your origin are made through HTTP. If your origin is using HTTPS, as it is in your case, that would cause such an issue as Cloudflare keeps trying to access your server via HTTP, which in turn keeps redirecting to HTTPS. Make sure your SSL/TLS encryption mode is set to Full (strict). If you have recently changed your record to be proxied by Cloudflare (or disabled that), that changes the A record target IP, which can take a while to propagate and is usually cached by your device/browser. After making the changes, give it some time or use a device which you have not recently used to access your website. |
I set it in Page Rules because I need other subdomains to have a different setting |
I use full (strict) and i'm still getting the same error. My own deployments (when I disable force https in advanced->general) work fine but all the templates i've deployed have the same too many redirects issue... |
SSL need to be set to at least Full, and also disable "always https" on SSL/TLS>Edge Certificates. Btw, if your using default proxy (traefik) you can setup DNS-01 for less LE errors issuing the certificate's https://coolify.io/docs/knowledge-base/traefik/wildcard-certificates |
"always https" is disabled I only want to set this subdomain I am using. My other apps and services are woking fine. |
There should be some type of setting in Coolify to disable forcing https redirects in the proxy. It's a good standard rule to have but it's messing up my setup... There was one before but it got removed in v4 :/ I can disable it by editing the coolify.yaml file etc but it gets reset everytime i restart or update |
I'm trying to setup meshcentral as well and am encountering the same issue. |
Unfortunately no |
I have a similar issue. I want both http and https traffic. Using coolify 4 373 Below are examples if I change Domains - using docker compose build pack. Domains: https://sub.example.com
Domains: http://sub.example.com
Domains: http://sub.example.com,https://sub.example.com
|
solved it using I also found hardcoded forced https .. coolify/bootstrap/helpers/shared.php Line 2082 in bdf411a
|
Not really a solution, rather a workaround. |
I had the same problem, my server is a home server and is connected to Cloudflare via tunnels, add this to define('FORCE_SSL_ADMIN', true);
if( strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false )
$_SERVER['HTTPS'] = 'on'; I hope this works for you too. |
Ok so in the end got mesh central up on port 443, if i do a curl https://localhost --insecure i get a normal html page back. Is that not enough then? i also disabled the redirect port on 80 but then it just times out, or bad gateway something in the sorts. Does the traefik config normally forward the request via http or https? if its http then that is something to look into. I am also using cloudflare but added that setting too also disable the proxy (to mask the ip) but also no luck. In the end i am not getting furhter then the redirect too.. Does anyone have a working one and if so whats your config.json? |
And its working..
Since that intel stuff is not valid anymore the mpsport is disabled by setting it to 0. Also i have cloudflare in front of it so i had to add trustedproxy: cloudflare, remove if not needed. Remove the mongo items if you don't use that. |
Thank you @riemers, this worked flawlessly! |
p.s. if you take the default docker file your missing the healthchecks.
This should belong on the docker compose on mesh central but i don't want alerts on things that are actually up and running ;) |
Description
I'm trying to run a meshcentral docker and when I access my domain I'm getting this error: ERR_TOO_MANY_REDIRECTS
Minimal Reproduction (if possible, example repository)
This is my docker-compose.yml:
With cloudflare dns configured like this:
A | my.domain.com | xxx.xx.xx.xx | DNS only
Also tried forcing cloudflare to use SSL to connect to this domain
Exception or Error
Here you can see that meshcentral is running
Version
v4.0.0-beta.333
Cloud?
The text was updated successfully, but these errors were encountered: