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

@@ -23,7 +23,7 @@ http {
proxy_set_header X-Forwarded-Proto $scheme;
}
# 리소스팩 업로드: 크기 제한 없음 (Nextcloud 로 넘어가므로)
# 팩 업로드: 크기 제한 없음 (Nextcloud 로 넘어가므로)
# 정규식으로 둔다: prefix "/api/packs/" 면 nginx 가 GET /api/packs 를 301 로 돌려버린다
location ~ ^/api/packs/ {
client_max_body_size 0;
@@ -54,7 +54,7 @@ http {
}
}
# 리소스팩 공개 다운로드 전용 (외부 mc.tkrmagid.kr/pack/ 이 이 포트로 연결됨).
# 팩 공개 다운로드 전용 (외부 mc.tkrmagid.kr/pack/ 이 이 포트로 연결됨).
# 대시보드/API 와 포트를 분리해서, 외부에서는 /pack/ 말고는 아무것도 닿지 않게 한다.
server {
listen 81;