Go to file
2024-11-30 10:59:24 +08:00
app update 2024-11-29 21:50:50 +08:00
components update 2024-11-29 21:50:50 +08:00
lib fix 2024-11-30 08:19:57 +08:00
.env.example fix 2024-11-30 08:19:57 +08:00
.eslintrc.json update 2024-11-29 21:50:50 +08:00
.gitignore update 2024-11-29 21:50:50 +08:00
auto.sh update 2024-11-30 10:59:24 +08:00
components.json update 2024-11-29 21:50:50 +08:00
docker-compose.yaml add auto install 2024-11-30 10:53:22 +08:00
Dockerfile fix 2024-11-30 08:19:57 +08:00
next.config.js fix 2024-11-30 08:19:57 +08:00
package-lock.json fix 2024-11-30 08:19:57 +08:00
package.json update 2024-11-30 09:31:54 +08:00
postcss.config.mjs update 2024-11-29 21:50:50 +08:00
README.md add auto install 2024-11-30 10:53:22 +08:00
tailwind.config.ts update 2024-11-29 21:50:50 +08:00
tsconfig.json update 2024-11-29 21:50:50 +08:00

URL-Shortener

URL-Shortener 是一个基于 Next.js 的简易短链接应用

部署

支持部署环境:

  • Docker
  • Systemd

自动(推荐):

curl -sSL https://git.mei.lv/mei/short-url/raw/branch/main/auto.sh -o auto.sh && bash auto.sh

手动:

git clone https://git.mei.lv/mei/short-url.git
docker build -t url-shortener:latest .
mkdir /opt/url-shortener
cd /opt/url-shortener
wget https://git.mei.lv/mei/short-url/raw/branch/main/docker-compose.yaml
docker compose up -d

部署成功后,服务会在 8567 端口上启动

迁移

替换 data/ 目录下的 shorturl.db 文件即可