From ea2f3953ee71e727a9c0403717c9953d939e9a0c Mon Sep 17 00:00:00 2001 From: Hyperling Date: Mon, 21 Aug 2023 11:51:15 -0700 Subject: [PATCH] Do not commit .env files, only their examples. --- .gitignore | 3 +++ dns.env.example | 16 ++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 dns.env.example diff --git a/.gitignore b/.gitignore index 4dc0b1a..52497f6 100644 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,6 @@ Config/DNS/config/* # Ignore anything in disabled folders. disabled + +# Ignore any .env files which are not explicitly committed to the project. +*.env diff --git a/dns.env.example b/dns.env.example new file mode 100644 index 0000000..c4d67c6 --- /dev/null +++ b/dns.env.example @@ -0,0 +1,16 @@ +# File to hold any specific DNS servers you'd like to use. This is helpful in +# situations such as Nextcloud needing to access an OnlyOffice server on the +# internal network but the router does not allow the traffic to go out and back +# in. Therefore a local DNS is necessary in order to tell Nextcloud that the +# document server is a local IP address rather than the WAN address like an +# external DNS would. + +# A private DNS server, such as one run by this project's Config/DNS/ config. +DNS1=10.110.1.53 + +# Fallback server, such as Cloudflare 1.1.1.1 or the system's local gateway. +DNS2=192.168.1.1 + +# Explicitly defined external DNS servers. +DNS_EX1=1.1.1.1 +DNS_EX2=1.0.0.1