Skip to content

Commit 8110336

Browse files
committed
web: add ability to configure the nginx resolver
1 parent 2f47518 commit 8110336

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ services:
6868
- INVITE_SERVICE_URL
6969
- JICOFO_AUTH_USER
7070
- MICROSOFT_API_APP_CLIENT_ID
71+
- NGINX_RESOLVER
7172
- P2P_USE_STUN_TURN
7273
- PEOPLE_SEARCH_URL
7374
- RESOLUTION

web/rootfs/defaults/nginx.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ http {
2626

2727
client_max_body_size 0;
2828

29+
resolver {{ .Env.NGINX_RESOLVER | default "127.0.0.11" }};
30+
2931
include /etc/nginx/mime.types;
3032
types {
3133
# add support for wasm MIME type, that is required by specification and it is not part of default mime.types file

web/rootfs/etc/cont-init.d/10-config

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,7 @@ if [[ $DISABLE_HTTPS -ne 1 ]]; then
5252
fi
5353

5454
# copy config files
55-
if [[ ! -f /config/nginx/nginx.conf ]]; then
56-
cp /defaults/nginx.conf /config/nginx/nginx.conf
57-
fi
55+
tpl /defaults/nginx.conf > /config/nginx/nginx.conf
5856

5957
if [[ ! -f /config/nginx/meet.conf ]]; then
6058
tpl /defaults/meet.conf > /config/nginx/meet.conf

0 commit comments

Comments
 (0)