Just use plain HTTP in development environment

This commit is contained in:
Greg Karékinian 2017-06-09 21:19:28 +02:00
parent 5534b57752
commit 488b50d54d

View File

@ -15,6 +15,7 @@ server {
location / {
try_files $uri $uri/ /index.php?$args;
<% if File.exist?(@ssl_cert) && File.exist?(@ssl_key) -%>
set $redirect_to_ssl "no";
if ($ssl_protocol = "") {
set $redirect_to_ssl "yes";
@ -22,6 +23,7 @@ server {
if ($redirect_to_ssl = yes) {
rewrite ^(.*) https://$host$1 permanent;
}
<% end -%>
}
location ~ \.php$ {