andreapollastri / cipi

Install and manage your server like a pro! With Cipi you don’t need to be a Sys Admin to deploy and manage websites and PHP applications powered by cloud VPS.
https://cipi.andreapollastri.net
1.09k stars 225 forks source link

Force https #386

Closed ubxty closed 2 years ago

ubxty commented 2 years ago

Option to force https for a domain that has the ssl enabled

donniewr commented 2 years ago

I think it is done by default when you enable SSL, I was automatically redirected to https and and unable to access the site using HTTP. Could be the browser upgrading it automatically, not sure.

ubxty commented 2 years ago

@Donniewr I mean , to let the user decide if they want to enable the redirect via the nginx or not , as this creates an infinite redirect loop , with cloudflare , if https is forced from both

donniewr commented 2 years ago

Change your SSL option in Cloudflare from Flexible to ​Full (strict).

andreapollastri commented 2 years ago

Hi! Currently... You can do it in your PHP app or via custom Nginx conf!

I'll add it for v4 features!