fix: allow nginx-conf-sigil-path to be set globally

This commit is contained in:
Jose Diaz-Gonzalez
2022-12-18 17:49:55 -05:00
parent 1e58b56ac7
commit ca4be83e64

View File

@@ -10,7 +10,7 @@ cmd-nginx-set() {
[[ "$1" == "$cmd" ]] && shift 1
declare APP="$1" KEY="$2" VALUE="$3"
local VALID_KEYS=("access-log-format" "access-log-path" "bind-address-ipv4" "bind-address-ipv6" "client-max-body-size" "disable-custom-config" "error-log-path" "hsts" "hsts-include-subdomains" "hsts-preload" "hsts-max-age" "nginx-conf-sigil-path" "proxy-read-timeout" "proxy-buffer-size" "proxy-buffering" "proxy-buffers" "proxy-busy-buffers-size" "x-forwarded-for-value" "x-forwarded-port-value" "x-forwarded-proto-value" "x-forwarded-ssl")
local GLOBAL_KEYS=("hsts")
local GLOBAL_KEYS=("hsts" "nginx-conf-sigil-path")
[[ -z "$KEY" ]] && dokku_log_fail "No key specified"