add auto redirect from http to https
This commit is contained in:
parent
b3e75e564e
commit
e2a3438b93
@ -25,6 +25,7 @@ frontend http
|
|||||||
bind *:80
|
bind *:80
|
||||||
reqadd X-Forwarded-Proto:\ http
|
reqadd X-Forwarded-Proto:\ http
|
||||||
acl letsencrypt-acl path_beg /.well-known/acme-challenge/
|
acl letsencrypt-acl path_beg /.well-known/acme-challenge/
|
||||||
|
redirect scheme https code 301 if !{ ssl_fc }
|
||||||
use_backend letsencrypt-backend if letsencrypt-acl
|
use_backend letsencrypt-backend if letsencrypt-acl
|
||||||
default_backend www-backend
|
default_backend www-backend
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user