File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -334,6 +334,10 @@ services:
334
334
environment :
335
335
OPENVERSE_NGINX_UPSTREAM_URL : ${HOST_NETWORK_ADDRESS}:8443
336
336
OPENVERSE_NGINX_PLAUSIBLE_EVENT_URL : http://plausible:8000/api/event
337
+ # Set to Docker network resolver to be able to resolve the `plausible` container.
338
+ # This would be the default but Nginx requires it to be explicitly set when
339
+ # making outgoing requests (e.g., to plausible.io)
340
+ OPENVERSE_NGINX_DNS_RESOLVER : 127.0.0.11
337
341
338
342
volumes :
339
343
api-postgres :
Original file line number Diff line number Diff line change 5
5
# - OPENVERSE_NGINX_GIT_REVISION
6
6
# - OPENVERSE_NGINX_ENVIRONMENT
7
7
# - OPENVERSE_NGINX_PLAUSIBLE_EVENT_URL
8
+ # - OPENVERSE_NGINX_DNS_RESOLVER
8
9
9
10
error_log /var/log/nginx/error.log;
10
11
@@ -69,7 +70,7 @@ server {
69
70
# This is Docker's internal DNS resolver
70
71
# In localhost it will resolve the local Plausible and forward anything else to the host
71
72
# In production, AWS replaces
72
- resolver 127.0.0.11 ;
73
+ resolver $OPENVERSE_NGINX_DNS_RESOLVER ;
73
74
set $plausible_event_url $OPENVERSE_NGINX_PLAUSIBLE_EVENT_URL;
74
75
location = /api/event {
75
76
proxy_pass $plausible_event_url;
You can’t perform that action at this time.
0 commit comments