소스 정보
- 저장소
- Dev-Toolbelt/dev-team-agents
- 최근 소스 활동
- 2026년 5월 11일 16:18
- 감지된 SKILL.md 언어
- 영어
- 스타
- 4
- 포크
- 0
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/Dev-Toolbelt/dev-team-agents --skill vps-linux명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | vps-linux |
| description | VPS Linux — Docker, reverse proxy, SSL, security hardening. |
# Connect as root initially
ssh root@<SERVER_IP>
# Create non-root user
adduser deploy
usermod -aG sudo deploy
# Copy your SSH key
mkdir -p /home/deploy/.ssh
cp ~/.ssh/authorized_keys /home/deploy/.ssh/
chown -R deploy:deploy /home/deploy/.ssh
chmod 700 /home/deploy/.ssh
chmod 600 /home/deploy/.ssh/authorized_keys
# Disable root SSH login and password auth
nano /etc/ssh/sshd_config
# Set: PermitRootLogin no
# Set: PasswordAuthentication no
# Set: PubkeyAuthentication yes
systemctl restart sshd
# Basic firewall
ufw allow OpenSSH
ufw allow 80
ufw allow 443
ufw enable
apt update && apt upgrade -y
apt install -y \
curl \
wget \
git \
htop \
fail2ban \
unattended-upgrades
# Install Docker (official script — verify at docs.docker.com)
curl -fsSL https://get.docker.com | sh
# Add deploy user to docker group (no sudo needed)
usermod -aG docker deploy
# Install Docker Compose plugin
apt install -y docker-compose-plugin
# Verify
docker --version
docker compose version
apt install -y nginx certbot python3-certbot-nginx
# /etc/nginx/sites-available/myapp
server {
listen 80;
server_name myapp.example.com;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl http2;
server_name myapp.example.com;
ssl_certificate /etc/letsencrypt/live/myapp.example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/myapp.example.com/privkey.pem;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_prefer_server_ciphers on;
# Security headers
add_header X-Frame-Options "SAMEORIGIN";
add_header X-Content-Type-Options "nosniff";
add_header X-XSS-Protection "1; mode=block";
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains";
location / {
proxy_pass http://127.0.0.1:8000;
proxy_http_version 1.1;
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 $scheme;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 60s;
}
}
# Enable site
ln -s /etc/nginx/sites-available/myapp /etc/nginx/sites-enabled/
nginx -t && systemctl reload nginx
# Issue SSL certificate
certbot --nginx -d myapp.example.com
# Auto-renew (verify cron is set by certbot)
certbot renew --dry-run
mkdir -p /opt/myapp
chown deploy:deploy /opt/myapp
# Inside /opt/myapp:
# docker-compose.yml
# .env.production (permissions 600, not committed to git)
# secrets/
#!/bin/bash
# /opt/myapp/deploy.sh
set -e
IMAGE_TAG=${1:-latest}
cd /opt/myapp
echo "Pulling image..."
docker compose pull app
echo "Deploying..."
IMAGE_TAG=$IMAGE_TAG docker compose up -d --remove-orphans
echo "Cleaning up old images..."
docker image prune -f
echo "Deployed successfully."
# Protect SSH and Nginx
cat > /etc/fail2ban/jail.local << EOF
[DEFAULT]
bantime = 3600
findtime = 600
maxretry = 5
[sshd]
enabled = true
[nginx-http-auth]
enabled = true
EOF
systemctl restart fail2ban
unattended-upgrades)docker system prune via cron)/etc/logrotate.d/)fallocate -l 1G /swapfile| Problem | Fix |
|---|---|
| 502 Bad Gateway | App container not running — docker compose ps |
| SSL cert expired | certbot renew |
| Port already in use | lsof -i :PORT to find the process |
| Out of disk space | docker system prune -a, check logs |