Skip to content

Commit f6b8b59

Browse files
committed
Fix fastboot check in nginx erb template
In production we're currently returning a 502 Bad Gateway for `/policies`. I intend to merge this and deploy to production shortly. This bug was introduced in #1907. The bad check always evaluated to true. An explicit check for an empty string is added as well. I've tested this locally with `erb` and different values and the generated configuration is now working correctly.
1 parent a6c5f0d commit f6b8b59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/nginx.conf.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ http {
141141
location / {
142142
proxy_pass http://localhost:9000;
143143
}
144-
<% elsif ['USE_FASTBOOT'] %>
144+
<% elsif ENV['USE_FASTBOOT'] && !ENV['USE_FASTBOOT'].empty? %>
145145
# Fastboot is enabled only for allowed paths
146146

147147
location = /policies {

0 commit comments

Comments
 (0)