f
This commit is contained in:
parent
59f99c40fe
commit
a4fc0ed9fe
@ -1,2 +1 @@
|
||||
NEXT_PUBLIC_BASE_URL=https://example.net
|
||||
NEXT_PUBLIC_ADMIN_EMAIL=example@example.com
|
||||
NEXT_PUBLIC_BASE_URL=https://example.net
|
@ -11,8 +11,8 @@ export default function Home() {
|
||||
<p>注册时填写优惠码 cat ,享更多优惠!</p>
|
||||
<p className="mt-2">
|
||||
违规举报:{' '}
|
||||
<a href="mailto:${process.env.NEXT_PUBLIC_ADMIN_EMAIL}" className="underline">
|
||||
{process.env.NEXT_PUBLIC_ADMIN_EMAIL}
|
||||
<a href="mailto:i@mei.lv" className="underline">
|
||||
i@mei.lv
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
|
@ -183,8 +183,8 @@ export default function RedirectPage({ params }: { params: { shortCode: string }
|
||||
<CardFooter className="justify-center">
|
||||
<p className="text-sm text-gray-500">
|
||||
违规举报:{' '}
|
||||
<a href="mailto:${process.env.NEXT_PUBLIC_ADMIN_EMAIL}" className="text-blue-500 hover:underline">
|
||||
{process.env.NEXT_PUBLIC_ADMIN_EMAIL}
|
||||
<a href="mailto:i@mei.lv" className="text-blue-500 hover:underline">
|
||||
i@mei.lv
|
||||
</a>
|
||||
</p>
|
||||
</CardFooter>
|
||||
|
4
auto.sh
4
auto.sh
@ -70,12 +70,12 @@ if [ $? -ne 0 ]; then
|
||||
echo -e "\e[31m下载 docker-compose.yaml 文件失败,请检查网络连接\033[0m"
|
||||
exit 1
|
||||
fi
|
||||
echo "NEXT_PUBLIC_BASE_URL=$DomainName
|
||||
NEXT_PUBLIC_ADMIN_EAMIL=$email" > "$InstallDir/short-url/.env"
|
||||
echo "NEXT_PUBLIC_BASE_URL=$DomainName" > "$InstallDir/short-url/.env"
|
||||
if [ $? -ne 0 ]; then
|
||||
echo -e "\e[31m创建 .env 文件失败\033[0m"
|
||||
exit 1
|
||||
fi
|
||||
find "$InstallDir" -type f -exec sed -i "s/i@mei.lv/$email/g" {} \;
|
||||
|
||||
# Build Docker image
|
||||
cd "$InstallDir/short-url"
|
||||
|
Loading…
Reference in New Issue
Block a user