Skip to content

Commit 811c0ed

Browse files
authored
feat: use dynamic dns resolution for upstreams in oss (#406)
Signed-off-by: Elijah Zupancic <[email protected]>
1 parent 6325044 commit 811c0ed

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1+
# This configuration should dynamically reload S3 backends
2+
# as they change in DNS.
3+
14
# Use NGINX's non-blocking DNS resolution
25
resolver ${DNS_RESOLVERS};
36

47
upstream storage_urls {
5-
# Upstreams are not refreshed until NGINX configuration is reloaded.
6-
# NGINX Plus will dynamically reload upstreams when DNS records are changed.
7-
server ${S3_UPSTREAM};
8+
zone s3_backends 64k;
9+
10+
server ${S3_UPSTREAM} resolve;
811
}

plus/etc/nginx/templates/upstreams.conf.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This configuration with NGINX Plus should dynamically reload S3 backends
1+
# This configuration should dynamically reload S3 backends
22
# as they change in DNS.
33

44
# Use NGINX's non-blocking DNS resolution

0 commit comments

Comments
 (0)