File tree 2 files changed +12
-0
lines changed
root-files/opt/flownative/lib
2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ Instead of the default format, a JSON format can be used by setting
83
83
| NGINX_AUTH_BASIC_REALM | string | off | Realm for HTTP Basic Authentication; if "off", authentication is disabled |
84
84
| NGINX_AUTH_BASIC_USERNAME | string | | Username for HTTP Basic Authentication |
85
85
| NGINX_AUTH_BASIC_ENCODED_HASHED_PASSWORD | string | | Base64-encoded hashed password (using httpasswd) for HTTP Basic Authentication |
86
+ | NGINX_ENABLE_UNDERSCORES_IN_HEADERS | boolean | no | Enables or disables the use of underscores in client request header fields. |
86
87
| BEACH_NGINX_CUSTOM_METRICS_ENABLE | boolean | no | If support for a custom metrics endpoint should be enabled |
87
88
| BEACH_NGINX_CUSTOM_METRICS_SOURCE_PATH | string | /metrics | Path where metrics are located |
88
89
| BEACH_NGINX_CUSTOM_METRICS_TARGET_PORT | integer | 8082 | Port at which Nginx should listen to provide the metrics for scraping |
Original file line number Diff line number Diff line change @@ -68,6 +68,8 @@ export NGINX_AUTH_BASIC_REALM=${NGINX_AUTH_BASIC_REALM:-off}
68
68
export NGINX_AUTH_BASIC_USERNAME=${NGINX_AUTH_BASIC_USERNAME:-}
69
69
export NGINX_AUTH_BASIC_ENCODED_HASHED_PASSWORD=${NGINX_AUTH_BASIC_ENCODED_HASHED_PASSWORD:-}
70
70
71
+ export NGINX_ENABLE_UNDERSCORES_IN_HEADERS=${NGINX_ENABLE_UNDERSCORES_IN_HEADERS:-no}
72
+
71
73
export NGINX_STATIC_ROOT=${NGINX_STATIC_ROOT:-/var/www/html}
72
74
EOF
73
75
}
@@ -92,6 +94,13 @@ nginx_legacy_initialize_flow() {
92
94
fi
93
95
fi
94
96
97
+ if is_boolean_yes " ${NGINX_ENABLE_UNDERSCORES_IN_HEADERS} " ; then
98
+ info " Nginx: Enabling underscores in headers ..."
99
+ underScoresInHeadersDirective=" underscores_in_headers on;"
100
+ else
101
+ underScoresInHeadersDirective=" underscores_in_headers off;"
102
+ fi
103
+
95
104
cat > " ${NGINX_CONF_PATH} /sites-enabled/site.conf" << -EOM
96
105
97
106
server {
@@ -308,6 +317,8 @@ server {
308
317
access_log off;
309
318
log_not_found off;
310
319
}
320
+
321
+ ${underScoresInHeadersDirective}
311
322
}
312
323
EOM
313
324
}
You can’t perform that action at this time.
0 commit comments