Skip to content

Commit adb0159

Browse files
committed
chore(deploy): pass community and the og key to production
community over the shared network like every other infra service; the tenant is derived from this client's site binding, so the address is all there is to configure. NUXT_OG_SITE_KEY is optional and stays server-side -- the signature is computed in a Nitro route, never in a bundle. Claude-Session: https://claude.ai/code/session_01WYeKk1xWGbYeENdb6Ez3xL
1 parent 8a8e2c0 commit adb0159

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎docker-compose.prod.yml‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
# KUN_OAUTH_CLIENT_SECRET — the 鲲 Galgame 表情包 confidential client secret
2121
# KUN_CATALOG_API_KEY — application key (nmk_live_…) scoped catalog:read,
2222
# minted in the NextMoe developer portal
23+
# NUXT_OG_SITE_KEY — nextmoe-og per-site signing key. Optional: with
24+
# it unset, share images fall back to the artwork
25+
# each page already has.
2326
# A Dokploy variable only reaches a container if this file names it, which is
2427
# why the key is written out in x-api-env below rather than merely existing in
2528
# the panel. It is required (:?) rather than optional on purpose: an absent key
@@ -51,6 +54,10 @@ x-api-env: &api-env
5154
# keystroke. Only the secret comes from Dokploy.
5255
KUN_CATALOG_BASE_URL: http://catalog:9281
5356
KUN_CATALOG_API_KEY: ${KUN_CATALOG_API_KEY:?set KUN_CATALOG_API_KEY}
57+
# Pack comment threads. Same OAuth credentials as the image service; the
58+
# tenant is derived upstream from this client's catalog_site binding and is
59+
# never sent, so there is nothing else to configure here.
60+
KUN_COMMUNITY_BASE_URL: http://community:9282
5461

5562
services:
5663
# Unique name on dokploy-network (same reason kungal-api / moyu-api are not
@@ -84,6 +91,9 @@ services:
8491
NUXT_PUBLIC_OAUTH_FRONTEND_URL: https://oauth.kungal.com
8592
NUXT_PUBLIC_OAUTH_CLIENT_ID: c5cd7b074804ba134934eb6c175a8f4d
8693
NUXT_PUBLIC_OAUTH_REDIRECT_URI: https://sticker.kungal.com/auth/callback
94+
# Server-side only: the signature is computed in a Nitro route, so this
95+
# never reaches a browser bundle.
96+
NUXT_OG_SITE_KEY: ${NUXT_OG_SITE_KEY:-}
8797
expose:
8898
- '3000'
8999
depends_on:

0 commit comments

Comments
 (0)