Refactor registrant config and clean up duplicate endpoints
- Use REGISTRANT_* env vars instead of DEFAULT_* for registrant info - Add REGISTRANT_ADDRESS2 to env config - Remove duplicate /childns/* endpoints (keep /glue/* only) - Add error handling to glue record endpoints - Document /domains/register endpoint in README Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -29,11 +29,12 @@ NAMECHEAP_SANDBOX=false
|
||||
# REST API 서버 인증
|
||||
API_SERVER_KEY=your_api_server_key # Vault: secret/namecheap/api-server
|
||||
|
||||
# 등록자 정보
|
||||
# 등록자 정보 (도메인 등록 시 기본값)
|
||||
REGISTRANT_ORGANIZATION=회사명
|
||||
REGISTRANT_FIRST_NAME=이름
|
||||
REGISTRANT_LAST_NAME=성
|
||||
REGISTRANT_ADDRESS1=주소
|
||||
REGISTRANT_ADDRESS1=주소1
|
||||
REGISTRANT_ADDRESS2=주소2 (선택)
|
||||
REGISTRANT_CITY=도시
|
||||
REGISTRANT_STATE_PROVINCE=시/도
|
||||
REGISTRANT_POSTAL_CODE=우편번호
|
||||
@@ -286,6 +287,7 @@ journalctl --user -u namecheap-api.service -f
|
||||
|--------|----------|------|
|
||||
| GET | `/domains` | 도메인 목록 |
|
||||
| POST | `/domains/check` | 도메인 가용성 확인 |
|
||||
| POST | `/domains/register` | 도메인 등록 (과금됨) |
|
||||
| GET | `/domains/{domain}` | 도메인 상세 정보 |
|
||||
| POST | `/domains/{domain}/renew` | 도메인 갱신 |
|
||||
| GET | `/domains/{domain}/contacts` | 등록자 정보 조회 |
|
||||
|
||||
Reference in New Issue
Block a user