IT-TOOLS有点类似于国内的站长工具,里面有各种各样的小工具可供使用,比如:uuid生成器、ipv4子网计算器、base64加密、dockerrun转dockercompose等等。
项目地址:https://github.com/CorentinTh/it-tools
安装需要用到的软件:
apt -y update apt -y install curl nginx python3-certbot-nginx curl -fsSL https://get.docker.com -o get-docker.sh sh get-docker.sh
新建compose:
mkdir -p /opt/ittools && cd /opt/ittools && nano docker-compose.yml
写入如下配置:
version: '3.9' services: ittools: image: 'ghcr.io/corentinth/it-tools:latest' container_name: it-tools restart: unless-stopped ports: - '65534:80'
启动:
docker compose up -d
配置nginx反代:
nano /etc/nginx/sites-available/ittools
写入如下配置:
server { listen 80; server_name it-tools.example.com; client_max_body_size 0; location / { proxy_pass http://127.0.0.1:65534; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto https; } }
启用新的nginx配置:
ln -s /etc/nginx/sites-available/ittools /etc/nginx/sites-enabled/ittools
签发ssl证书:
certbot --nginx
预览:
只会使用二维码生成器