Skip to content

Commit

Permalink
add resolver for http nginx configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
mishaschwartz committed Jan 6, 2025
1 parent 6743dd5 commit f0f44e2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 10 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,16 @@
[Unreleased](https://github.com/bird-house/birdhouse-deploy/tree/master) (latest)
------------------------------------------------------------------------------------------------------------------

[//]: # (list changes here, using '-' for each new entry, remove this when items are added)
## Fixes

- Add resolver for http nginx configuration

Nginx requires a resolver to be explicity defined when using `proxy_pass` with a variable in the argument passed
to `proxy_pass`. This resolver is defined explicitly for the https server block but not for the http server block.

This adds the explicit resolver for the http server block as well so that `proxy_pass` works when called using using
http URLs as well.


[2.7.1](https://github.com/bird-house/birdhouse-deploy/tree/2.7.1) (2024-12-20)
------------------------------------------------------------------------------------------------------------------
Expand Down
2 changes: 2 additions & 0 deletions birdhouse/components/proxy/conf.d/frontend.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ server {
listen 80;
server_name localhost;

resolver 127.0.0.11;

${PROXY_INCLUDE_FOR_PORT_80}

# redirect server error pages to the static page /50x.html
Expand Down

0 comments on commit f0f44e2

Please sign in to comment.