Skip to content

Commit

Permalink
remove unused location ___http_call
Browse files Browse the repository at this point in the history
  • Loading branch information
eguzki committed Aug 26, 2024
1 parent 2d6a062 commit 0292b0e
Showing 1 changed file with 0 additions and 43 deletions.
43 changes: 0 additions & 43 deletions gateway/conf.d/apicast.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,49 +10,6 @@ lua_check_client_abort on;
# ssl_session_fetch_by_lua_block { require('apicast.executor').call() }
# ssl_session_store_by_lua_block { require('apicast.executor').call() }

location = /___http_call {
internal;

set $url '';

set $proxy_pass '';
set $host_header '';
set $connection_header 'close';
set $options '';
set $grant_type '';

proxy_pass $proxy_pass;
proxy_pass_request_headers off;
proxy_pass_request_body on;
proxy_ssl_name $host_header;
proxy_http_version 1.1;

proxy_set_header Host $host_header;
proxy_set_header Connection $connection_header;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-3scale-User-Agent $deployment;
proxy_set_header X-3scale-Version $version;
proxy_set_header User-Agent $user_agent;
proxy_set_header X-3scale-OAuth2-Grant-Type $grant_type;
proxy_set_header 3scale-options $options;

# Hack for having a valid openresty config and valid liquid templating
#{% if opentracing_forward_header == nil or opentracing_forward_header == empty %}
# {% assign opentracing_forward_header = "uber-trace-id" %}
#{% endif %}
#{% if opentracing_tracer != nil or opentracing_forward_header != nil %}
# {% capture proxy_set_header_opentracing %}
#{#} proxy_set_header {{opentracing_forward_header}} $http_{{ opentracing_forward_header | tostring | replace: "-","_" }};
# {% endcapture %}
# {{ proxy_set_header_opentracing | replace: "#{#}", "" }}
#{% endif %}

rewrite_by_lua_block {
require('resty.http_ng.backend.ngx'):resolver()
}
}

location @out_of_band_authrep_action {
internal;

Expand Down

0 comments on commit 0292b0e

Please sign in to comment.