Add code-server one-line installation to README

- Add new section: 개발 환경 설정 (code-server)
- One-line installation with curl command
- Support custom port configuration
- Support unattended installation with PASSWORD env var
- Include security recommendations (reverse proxy, strong password, firewall, VPN)
- Auto-install code-server if not present
- Auto-cleanup existing processes
- nohup background execution

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
PharmQ Admin 2025-11-02 07:55:49 +00:00
parent 8d27461f76
commit 41d3e7d946

View File

@ -255,7 +255,48 @@ iex ((New-Object System.Net.WebClient).DownloadString('https://git.0bin.in/thug0
### Windows 자동 처리 기능
- ✅ **Tailscale 자동 다운로드** 및 설치
- ✅ **관리자 권한** 자동 확인
- ✅ **관리자 권한** 자동 확인
- ✅ **기존 연결 스마트 처리** (Linux와 동일)
- ✅ **Windows Defender 방화벽** 자동 설정
- ✅ **네트워크 연결 테스트** 및 확인
- ✅ **네트워크 연결 테스트** 및 확인
## 💻 개발 환경 설정 (code-server)
팜큐 네트워크에 연결된 서버에서 **웹 기반 VS Code 개발 환경**을 빠르게 구축:
### 한 줄 설치 (권장)
```bash
# 기본 포트 8080으로 설치
curl -fsSL https://git.0bin.in/thug0bin/headscale-tailscale-replacement/raw/branch/live/pharmq-headscale-production/docs/code-server.sh | bash
# 포트 지정 설치 (예: 8443)
curl -fsSL https://git.0bin.in/thug0bin/headscale-tailscale-replacement/raw/branch/live/pharmq-headscale-production/docs/code-server.sh | PORT=8443 bash
```
### 무인 설치 (비밀번호 환경변수 설정)
```bash
# 비밀번호를 환경변수로 전달
curl -fsSL https://git.0bin.in/thug0bin/headscale-tailscale-replacement/raw/branch/live/pharmq-headscale-production/docs/code-server.sh | PASSWORD="your-secure-password" SKIP_CONFIRM=1 bash
```
### 자동 설치 기능
- ✅ **code-server 자동 설치** (미설치 시)
- ✅ **설정 파일 자동 생성** 및 구성
- ✅ **기존 프로세스 정리** (중복 실행 방지)
- ✅ **0.0.0.0 바인딩** (외부 접속 가능)
- ✅ **nohup 백그라운드 실행** (세션 종료 후에도 유지)
### 설치 후 접속
```bash
# 브라우저에서 접속
http://<서버IP>:8080
# 로그 확인
tail -f ~/code-server.log
```
### 보안 권장사항
- 🔒 **역프록시 사용**: Caddy 또는 Nginx로 HTTPS 설정
- 🔒 **강력한 비밀번호**: 복잡한 비밀번호 사용
- 🔒 **방화벽 설정**: 필요한 IP만 접근 허용
- 🔒 **VPN 접속**: 팜큐 네트워크 내부에서만 접속