updated some thing relating to domainless setup
This commit is contained in:
17
deploy.sh
17
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 <<EOF
|
||||
address=/?domain?/?localip?
|
||||
EOF
|
||||
|
||||
echo ""
|
||||
echo ""
|
||||
echo ""
|
||||
|
||||
Reference in New Issue
Block a user