8000 stop using $upstream variable proxy_backend.conf.template for owasp/modsecurity-crs:nginx · Issue #330 · coreruleset/modsecurity-crs-docker · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
stop using $upstream variable proxy_backend.conf.template for owasp/modsecurity-crs:nginx #330
Closed
@gtaws

Description

@gtaws

What's the original intent on using $upstream in the proxy_backend.conf.template? If nginx has to replace proxy_pass argument with a variable, it will end up using the DNS resolver to resolve the hostname, and not /etc/hosts first, which defeats the purpose of extra_hosts. Because it's a template, can we replace the proxy_pass argument with the BACKEND environment variable instead? I had to manually mount an edited template to force nginx to resolve a hostname mapped through extra_hosts.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0