SealDice 免费部署指北

配置

其实只是参考两个视频 1、2,简单记录一下选项;这类白嫖玩法随时可能遭遇变故,长期而言可参考性不高。

防火墙部分有所改动,因为仅用于骰子机器人并绑定了在 Cloudflare 解析的域名。

  1. ☰ → Compute Engine → VM Instances
    • Machine configuration
      • Region: us-central1 (Iowa) / us-east1 (South Carolina) / us-west1 (Oregon)
      • Machine type: Shared-core - e2-micro (0.25-2 vCPU, 1 GB memory)
    • OS and storage → Change
      • Boot disk type: Standard persistent disk
      • Size: 30
    • Data protection
      • Backups: No backups
    • Networking
      • Firewall: Allow HTTP traffic & Allow HTTPS traffic
      • Network tags: ❶
      • Network interfaces → Network Service Tier: Standard
  2. ⋮ → View network details → VPC firewall rules
    • Direction: Ingress
    • Action on match: Allow
      • Targets: Specified target tags
      • Target tags: ❶
      • Source filter: IPv4 ranges
      • Source IPv4 ranges: Cloudflare IP Ranges
    • Protocols and ports: Specified protocols and ports
      • TCP: 3211

安装

mkdir sealdice
cd sealdice
wget https://github.com/sealdice/sealdice-build/releases/download/vVERSION/sealdice-core_VERSION_linux_amd64.tar.gz
tar -zxvf sealdice-core_VERSION_linux_amd64.tar.gz
chmod +x ./sealdice-core
sudo ./sealdice-core -i

域名

  1. DNS → A Record
  2. Rules → Origin Rules
    • If incoming requests match → Custom filter expression: Hostname equals SUBDOMAIN
    • Then → Destination Port Rewrite to: 3211
  3. SSL/TLS encryption: Flexible