File tree 3 files changed +5
-12
lines changed 3 files changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -47,9 +47,7 @@ services:
47
47
# Set the appropriate timezone for your location (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones), e.g:
48
48
TZ : ' Europe/London'
49
49
# Set a password to access the web interface. Not setting one will result in a random password being assigned
50
- FTLCONF_webserver_api_password : ' correct horse battery staple'
51
- # Configure DNS upstream servers, e.g:
52
- FTLCONF_dns_upstreams : ' 8.8.8.8;8.8.4.4'
50
+ FTLCONF_webserver_api_password : ' correct horse battery staple'
53
51
# Volumes store your data between container upgrades
54
52
volumes :
55
53
# For persisting Pi-hole's databases and common configuration file
Original file line number Diff line number Diff line change @@ -35,9 +35,7 @@ services:
35
35
# Set the appropriate timezone for your location (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones), e.g:
36
36
TZ : ' Europe/London'
37
37
# Set a password to access the web interface. Not setting one will result in a random password being assigned
38
- FTLCONF_webserver_api_password : ' correct horse battery staple'
39
- # Configure DNS upstream servers, e.g:
40
- FTLCONF_dns_upstreams : ' 8.8.8.8;8.8.4.4'
38
+ FTLCONF_webserver_api_password : ' correct horse battery staple'
41
39
# Volumes store your data between container upgrades
42
40
volumes :
43
41
# For persisting Pi-hole's databases and common configuration file
Original file line number Diff line number Diff line change @@ -62,12 +62,9 @@ ensure_basic_configuration() {
62
62
fi
63
63
64
64
# If getFTLConfigValue "dns.upstreams" returns [], exit the container. We need upstream servers to function!
65
- if [[ $( getFTLConfigValue " dns.upstreams" ) == " []" ]]; then
66
- echo " "
67
- echo " [X] No DNS upstream servers are set!"
68
- echo " [i] Recommended: Set the upstream DNS servers in the environment variable FTLCONF_dns_upstreams"
69
- echo " "
70
- exit 1
65
+ if [[ $( getFTLConfigValue " dns.upstreams" ) == " []" ]]; then
66
+ echo " [i] No DNS upstream set in environment or config file, defaulting to Google DNS"
67
+ setFTLConfigValue " dns.upstreams" " [\" 8.8.8.8\" , \" 8.8.4.4\" ]"
71
68
fi
72
69
73
70
setup_web_password
You can’t perform that action at this time.
0 commit comments