update
This commit is contained in:
parent
08c3fd5c64
commit
72772b4d5e
@ -1 +1,2 @@
|
|||||||
NEXT_PUBLIC_BASE_URL=https://u.mei.lv
|
NEXT_PUBLIC_BASE_URL=https://example.net
|
||||||
|
NEXT_PUBLIC_ADMIN_EMAIL=example@example.com
|
@ -14,8 +14,12 @@ const geistMono = localFont({
|
|||||||
});
|
});
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
title: "Url Shortener",
|
title: "URL Shortener",
|
||||||
description: "缩短你的长链接!",
|
description: "缩短你的长链接!",
|
||||||
|
keywords: ['短链接', '长链接', '缩短URL', '缩短长链接', '长链接缩短', '短链', 'Url Shortener'],
|
||||||
|
authors: [{ name: 'mei' }],
|
||||||
|
creator: 'mei',
|
||||||
|
publisher: 'mei',
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function RootLayout({
|
export default function RootLayout({
|
||||||
|
@ -11,8 +11,8 @@ export default function Home() {
|
|||||||
<p>注册时填写优惠码 cat ,享更多优惠!</p>
|
<p>注册时填写优惠码 cat ,享更多优惠!</p>
|
||||||
<p className="mt-2">
|
<p className="mt-2">
|
||||||
违规举报:{' '}
|
违规举报:{' '}
|
||||||
<a href="mailto:i@mei.lv" className="underline">
|
<a href="mailto:${process.env.NEXT_PUBLIC_ADMIN_EMAIL}" className="underline">
|
||||||
i@mei.lv
|
${process.env.NEXT_PUBLIC_ADMIN_EMAIL}
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
@ -183,8 +183,8 @@ export default function RedirectPage({ params }: { params: { shortCode: string }
|
|||||||
<CardFooter className="justify-center">
|
<CardFooter className="justify-center">
|
||||||
<p className="text-sm text-gray-500">
|
<p className="text-sm text-gray-500">
|
||||||
违规举报:{' '}
|
违规举报:{' '}
|
||||||
<a href="mailto:i@mei.lv" className="text-blue-500 hover:underline">
|
<a href="mailto:${process.env.NEXT_PUBLIC_ADMIN_EMAIL}" className="text-blue-500 hover:underline">
|
||||||
i@mei.lv
|
${process.env.NEXT_PUBLIC_ADMIN_EMAIL}
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
</CardFooter>
|
</CardFooter>
|
||||||
|
4
auto.sh
4
auto.sh
@ -42,6 +42,7 @@ while true; do
|
|||||||
break
|
break
|
||||||
done
|
done
|
||||||
echo -e "\e[32m您输入的域名是: $DomainName\033[0m"
|
echo -e "\e[32m您输入的域名是: $DomainName\033[0m"
|
||||||
|
read -p "您的邮箱: " email
|
||||||
if [ -z "$InstallDir" ]; then
|
if [ -z "$InstallDir" ]; then
|
||||||
InstallDir="/opt/url-shortener"
|
InstallDir="/opt/url-shortener"
|
||||||
fi
|
fi
|
||||||
@ -69,7 +70,8 @@ if [ $? -ne 0 ]; then
|
|||||||
echo -e "\e[31m下载 docker-compose.yaml 文件失败,请检查网络连接\033[0m"
|
echo -e "\e[31m下载 docker-compose.yaml 文件失败,请检查网络连接\033[0m"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
echo "NEXT_PUBLIC_BASE_URL=$DomainName" > "$InstallDir/short-url/.env"
|
echo "NEXT_PUBLIC_BASE_URL=$DomainName
|
||||||
|
NEXT_PUBLIC_ADMIN_EAMIL=$email" > "$InstallDir/short-url/.env"
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo -e "\e[31m创建 .env 文件失败\033[0m"
|
echo -e "\e[31m创建 .env 文件失败\033[0m"
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user