diff --git a/config/nginx.sample.conf b/config/nginx.sample.conf index fdb264d8728..c1a327fb76d 100644 --- a/config/nginx.sample.conf +++ b/config/nginx.sample.conf @@ -33,7 +33,7 @@ large_client_header_buffers 4 32k; # attempt to preserve the proto, must be in http context map $http_x_forwarded_proto $thescheme { default $scheme; - https https; + "~https$" https; } log_format log_discourse '[$time_local] "$http_host" $remote_addr "$request" "$http_user_agent" "$sent_http_x_discourse_route" $status $bytes_sent "$http_referer" $upstream_response_time $request_time "$upstream_http_x_discourse_username" "$upstream_http_x_discourse_trackview" "$upstream_http_x_queue_time" "$upstream_http_x_redis_calls" "$upstream_http_x_redis_time" "$upstream_http_x_sql_calls" "$upstream_http_x_sql_time"';