Just use plain HTTP in development environment

This commit is contained in:
Greg Karékinian
2017-06-09 21:20:00 +02:00
parent 488b50d54d
commit 49a9625d16
2 changed files with 16 additions and 16 deletions

View File

@@ -13,6 +13,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";
@@ -20,6 +21,7 @@ server {
if ($redirect_to_ssl = yes) {
rewrite ^(.*) https://$host$1 permanent;
}
<% end -%>
}
location ~ \.php$ {