No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2025-12-25 13:04:55 +08:00
scripts feat: init 2025-12-24 23:05:28 +08:00
01_server_init.sh fix: apt auto install 2025-12-25 13:04:55 +08:00
02_install_nginx.sh feat: init 2025-12-24 23:05:28 +08:00
03_install_docker.sh feat: init 2025-12-24 23:05:28 +08:00
04_allow_cloudflare.sh fix: apt auto install 2025-12-25 13:04:55 +08:00
05_nginx_snippets.sh feat: nginx snippets 2025-12-24 23:53:24 +08:00
README.md feat: init 2025-12-24 23:05:28 +08:00

Debian Server Init


Reinstall Debian

curl -fLO https://raw.githubusercontent.com/bohanyang/debi/master/debi.sh
chmod +x debi.sh
./debi.sh \
    --version 13 \
    --architecture amd64 \
    --cloudflare \
    --user username \
    --authorized-keys-url https://github.com/username.keys \
    --ssh-port 22 \
    --bbr
reboot

Init New Server

apt update
apt install -y git
git clone https://github.com/kotoyuuko/debian-server-init
cd debian-server-init
chmod +x *.sh
./01_server_init.sh 22 8G
./02_install_nginx.sh your-domain.com
./03_install_docker.sh
./04_allow_cloudflare.sh