synchronization

This commit is contained in:
2025-08-25 16:04:00 +08:00
commit 33f9b3ce46
1951 changed files with 854396 additions and 0 deletions

10
fastsdcpu/Dockerfile Normal file
View File

@@ -0,0 +1,10 @@
FROM python:3.11
LABEL maintainer="Offends <offends4@163.com>"
RUN apt update \
&& apt-get install ffmpeg -y
COPY ./start.sh /start.sh
CMD ["/start.sh"]

View File

@@ -0,0 +1,5 @@
FROM nginx:alpine-slim
COPY ./default.conf /etc/nginx/conf.d/default.conf
EXPOSE 80

38
fastsdcpu/README.md Normal file
View File

@@ -0,0 +1,38 @@
# Fastsdcpu-docker
1. 构建基础镜像
```bash
docker build -t app:v1 .
```
2. 启动容器
```bash
docker run -it --name fastsdcpu --net=host -v /root/fastsdcpu:/fastsdcpu -v /root/.cache:/root/.cache app:v1.0 bash
```
3. 初始化文件
```bash
cd /fastsdcpu && git init
git remote add origin https://github.com/rupeshs/fastsdcpu.git
git pull origin main
```
4. 初始化数据
```bash
chmod +x install.sh && ./install.sh
```
```bash
./start.sh
```
```bash
./start-webui.sh
```
> 启动成功后访问页面, 生成一张图片以便下载 cache 数据

15
fastsdcpu/default.conf Normal file
View File

@@ -0,0 +1,15 @@
server {
listen 80;
server_name default;
location / {
proxy_pass http://127.0.0.1:7860;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}

37
fastsdcpu/start.sh Normal file
View File

@@ -0,0 +1,37 @@
#!/bin/bash
# 初始化文件夹
# 判断 /root/.cache 目录是否存在
if [ ! "$(ls -A /root/.cache)" ]; then
cd /
wget https://rainbond-pkg.oss-cn-shanghai.aliyuncs.com/rainstore/cache-nobody.tar
echo "################################################################"
echo "正在解压主体文件,文件大小 5.39G, 预计5分钟左右,请稍等..."
echo "################################################################"
tar -xvf cache-nobody.tar -C /root/ > /dev/null 2>&1
rm -rf /cache-nobody.tar
echo "################################################################"
echo "文件准备完成"
echo "################################################################"
fi
# 判断 /fastsdcpu 目录下是否有文件
if [ ! "$(ls -A /fastsdcpu)" ]; then
cd /
wget https://rainbond-pkg.oss-cn-shanghai.aliyuncs.com/rainstore/fastsdcpu-nobody.tar
echo "################################################################"
echo "正在解压主体文件,文件大小 2.64G, 预计5分钟左右,请稍等..."
echo "################################################################"
tar -xvf fastsdcpu-nobody.tar -C / > /dev/null 2>&1
rm -rf /fastsdcpu-nobody.tar
echo "################################################################"
echo "文件准备完成"
echo "################################################################"
fi
# 切换目录
cd /fastsdcpu
# 启动Web服务
./start-webui.sh