You should use proxy_ssl_insecure_skip_verify in the root of config instead.
proxy_ssl_insecure_skip_verify