From d49f92e5260211fe73443e12b5fa015b7046d68b Mon Sep 17 00:00:00 2001 From: thug0bin Date: Mon, 3 Nov 2025 23:08:27 +0900 Subject: [PATCH] Update README.md --- README.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/README.md b/README.md index 57aa17e..987e44a 100644 --- a/README.md +++ b/README.md @@ -112,6 +112,36 @@ apt-get update # Enterprise repository 완전 비활성화 확인 grep -r "enterprise.proxmox.com" /etc/apt/sources.list.d/ ``` +## 💻 개발 환경 설정 (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 ## 라이선스