feat(packs): pack types (resourcepack/datapack/modpack), URL /pack/<type>.zip?domain=<domain>

Files move to <NEXTCLOUD_DIR>/<domain>/<type>.zip; packs.json is {domain: {type: meta}}.
Only resourcepack shows the server.properties snippet; datapack/modpack show the URL.
modpack skips the pack.mcmeta check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-23 15:51:52 +09:00
parent 5474dc2fca
commit 03ab32f8ab
7 changed files with 151 additions and 102 deletions

View File

@@ -16,7 +16,7 @@ services:
expose:
- "8000"
environment:
# 리소스팩 저장소 (share.tkrmagid.kr). 비밀번호는 같은 폴더의 .env 에 둔다.
# 팩 저장소 (share.tkrmagid.kr). 비밀번호는 같은 폴더의 .env 에 둔다.
NEXTCLOUD_URL: ${NEXTCLOUD_URL:-http://192.168.10.10:8080}
NEXTCLOUD_USER: ${NEXTCLOUD_USER:-}
NEXTCLOUD_PASSWORD: ${NEXTCLOUD_PASSWORD:-}
@@ -42,7 +42,7 @@ services:
container_name: mc-filter-nginx
ports:
- "8080:80" # 대시보드 접근 포트 (외부 포트포워딩 금지 권장)
- "8081:81" # 리소스팩 공개 다운로드 전용 (/pack/ 만 응답)
- "8081:81" # 팩 공개 다운로드 전용 (/pack/ 만 응답)
depends_on:
- api
- frontend