feat: support virtual item detail images and COS access

This commit is contained in:
zhouzhibo committed 2026-10-21 20:21:28 +08:00
1 parent 0f927c1884
commit eefd54ad96
17 files changed
+528 -26

No files matched your search

+1
View File
@@ -12,3 +12,4 @@ hera:
cos:
secret-id: "${TENCENT_COS_SECRET_ID}"
secret-key: "${TENCENT_COS_SECRET_KEY}"
public-base-url: "${TENCENT_COS_PUBLIC_BASE_URL:http://101.43.139.56/hera/file/}"
+4 -3
View File
@@ -1,7 +1,8 @@
# Include this location in the server block for 101.43.139.56.
# Preserve /file/access and the token query when forwarding.
location /file/ {
proxy_pass http://127.0.0.1:8080;
# The public /hera/file/access path maps to Spring's /file/access.
# Keep the query string intact; do not forward this route directly to COS.
location /hera/file/ {
proxy_pass http://127.0.0.1:8080/file/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;