From 3e635b285e02a3cf3df08db547e1dbc8497ad122 Mon Sep 17 00:00:00 2001 From: SDGDen Date: Mon, 9 Mar 2026 04:57:42 +0100 Subject: [PATCH] updated some thing relating to domainless setup --- deploy.sh | 17 ++++++++++++++++- gencerts.sh | 2 +- setup/Domainless Setup.txt | 13 ++----------- stacks/pihole/compose.yml | 1 - 4 files changed, 19 insertions(+), 14 deletions(-) diff --git a/deploy.sh b/deploy.sh index 93b6e4f..acdb87a 100644 --- a/deploy.sh +++ b/deploy.sh @@ -257,9 +257,12 @@ cd /opt/dockge curl "https://dockge.kuma.pet/compose.yaml?port=5001&stacksPath=%2Fopt%2Fstacks" --output compose.yaml # write configuration to compose files +mkdir -p /opt/files cp -r $scriptdir/stacks /opt -cp -r $scriptdir/setup /opt/stacks +cp -r $scriptdir/setup /opt/files chmod -R 775 /opt/stacks +chmod -R 775 /opt/files + cd /opt/stacks git clone https://github.com/trantienloi2404/youtube-downloader.git downloader @@ -291,6 +294,14 @@ replace_string_recursive "/opt/stacks" "?bookstackdbrootpass?" $bookstackdbrootp #onlyofficeJWT replace_string_recursive "/opt/stacks" "?onlyofficeJWT?" $onlyofficeJWT +#domain +replace_string_recursive "/opt/files" "?domain?" $domain +#publicip +replace_string_recursive "/opt/files" "?publicip?" $publicip +#localip +replace_string_recursive "/opt/files" "?localip?" $localip +#adminemail +replace_string_recursive "/opt/files" "?adminemail?" $adminemail # install mailcow to /opt/stacks/mailcow so it shows up in dockge umask 0022 @@ -477,6 +488,10 @@ site.$domain Add any other subdomains you want to use. EOF +cat >/opt/stacks/pihole/dns/02-wildcard.conf < local dns records and add two records: - -| domain | IP -| ?domain? | ?localip? -| *.?domain | ?localip? - - -now you can reach your cloud with whichever domain you want as long as you are on the pihole DNS. +as long as you are connected to the pihole DNS and on the local network, you will be able to reach your cloud. The VPN is set up by default to use this DNS, so you will also be able to reach your cloud when using your VPN, allowing use on the go. diff --git a/stacks/pihole/compose.yml b/stacks/pihole/compose.yml index 39084d1..1264aad 100644 --- a/stacks/pihole/compose.yml +++ b/stacks/pihole/compose.yml @@ -7,7 +7,6 @@ services: ports: - 53:53/tcp - 53:53/udp - - 5380:80 environment: TZ: ?timezone? FTLCONF_WEBSERVER_API_PASSWORD: ?adminpass?