Skip to content

Conversation

@mpavlase
Copy link

@mpavlase mpavlase commented Apr 9, 2021

Current implementation can't handle adding extra block of options by code like example below, due missing passing *args inside add_route.

from nginx.config.helpers import duplicate_options

# (...)
proxy_headers = duplicate_options('proxy_set_header', [
    ['Upgrade', '$http_upgrade'],
    ['Host', '$host']
])

server.add_route('/path', proxy_headers, proxy_pass='http://localhost/abc').end()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant