mirror of
https://github.com/niels-emmer/myace.git
synced 2026-09-14 07:36:39 +02:00
[PR #85] [MERGED] fix: add nginx resolver for runtime DNS resolution with variable proxy_pass #88
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
github-mirrors/myace#88
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/niels-emmer/myace/pull/85
Author: @niels-emmer
Created: 8/12/2026
Status: ✅ Merged
Merged: 8/12/2026
Merged by: @niels-emmer
Base:
main← Head:fix/nginx-resolver📝 Commits (1)
42ef588fix: add nginx resolver for runtime DNS resolution with variable proxy_pass📊 Changes
1 file changed (+4 additions, -0 deletions)
View changed files
📝
frontend/nginx.conf(+4 -0)📄 Description
Summary
The previous fix (using a variable in
proxy_passfor runtime DNS resolution) introduced a new issue: nginx needs an explicitresolverdirective when resolving hostnames at runtime via variables. Without it, nginx logsno resolver defined to resolve backendand returns 502.Fix
Added
resolver 127.0.0.11 valid=10s;to the nginx server block.127.0.0.11is Docker's embedded DNS resolver;valid=10ssets the cache TTL so DNS is re-resolved every 10 seconds.Changes
frontend/nginx.confresolver 127.0.0.11 valid=10s;in server blockChecklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.