diff --git a/resources/nginx.conf b/resources/nginx.conf index 0ea50fe..2c7a53c 100644 --- a/resources/nginx.conf +++ b/resources/nginx.conf @@ -49,7 +49,11 @@ http { '"event_name": "NGINX_LOG"' '}'; - access_log /dev/stdout main; + map $status $loggable { + ~^[23] 0; + default 1; + } + access_log /dev/stderr main if=$loggable; error_log /dev/stderr; upstream app { @@ -75,22 +79,6 @@ http { ssl_session_cache shared:SSL:10m; ssl_session_tickets off; - if ($scheme = http) { - set $redirect_to_https true; - } - - if ($http_x_forwarded_proto = "http") { - set $redirect_to_https true; - } - - if ($hostname = gogo-dev) { - set $redirect_to_https false; - } - - if ($redirect_to_https = true) { - rewrite ^(.*) https://$host$1; - } - # Web UI static content location /static { alias /app/static/;