coolify icon indicating copy to clipboard operation
coolify copied to clipboard

[Bug]: http should redirect to https by default otherwise we can get a 403 error

Open peaklabs-dev opened this issue 8 months ago • 0 comments

Description

I noticed that I get a 403 error when visiting the http://DOMAIN.sslip.io url as my browser automatically redirects me to https. I then have to manually update the URL to https://... to access my services on the sslip domain.

This should not be the case and there should be a redirection setting that I can enable to redirect no http to https all the time so that I always use https. --> This can be done like the www redirect setting was done, or even better by just giving us a vhost editor like mentioned here: https://github.com/coollabsio/coolify/issues/2392.

Minimal Reproduction (if possible, example repository)

  1. Install WordPress
  2. Open the sslip URL with https (without changing the default http URL) -> gives a 403 error
  3. then open it with http -> this works but is not ideal (as it is http and not https)
  4. Change it to https and deploy again -> works perfectly.
  • [ ] The fix is just to redirect all non-https requests/ all http traffic to https by default -> make a similar setting like for the www redirect or just a checkbox to redirect http to https all the time or even better add a vhost editor directly in the UI.
  • [ ] Add missing force HTTPS checkbox to services and docker compose, dockerfile deployments -> For git apps this is already available. --> Will be hard as services all do their own thing but needs to be fixed

Version

v4.0.0-beta.294

peaklabs-dev avatar Jun 12 '24 20:06 peaklabs-dev