-
Notifications
You must be signed in to change notification settings - Fork 0
Configuration Reference
Main config file:
plugins/WebShopX/config.ymlThis file already includes full Chinese comments. This page explains key parts only. The effective source of truth isconfig.yml.
- Most settings support hot reload via
/ws reload.
-
webshop.*: web runtime, session, delivery, market, logging, admin bootstrap -
database.*: database connection pool -
exchange.*: dual-currency exchange (deprecated soon, use web console) -
currency.*: display names for currencies -
economy.*: market fee/tax settings (deprecated soon, use web console) -
redis.*: reserved settings (not wired to business logic in current version) -
sample-products: sample product definitions (deprecated soon, create products in web console)
-
webshop.server-mode-
internal: plugin serves API + static pages -
external: API only, static resources exported for external hosting
-
-
webshop.api-base-url- Commonly used in
externalmode as the frontend API base URL
- Commonly used in
-
webshop.session-expire-hours: session TTL (hours) -
webshop.bind-request-expire-minutes: bind request TTL (minutes) -
webshop.access-token-length: token length (recommended 32-64)
-
webshop.time-zone: business timezone (affects product schedule interpretation) -
webshop.order-cooldown-seconds: order cooldown window -
webshop.refund-undelivered-enabled: allow refunds for undelivered orders -
webshop.allow-shared-claim-command: allow shared/manual claim by claim code
-
webshop.delivery-batch-size: number of delivery tasks per cycle -
webshop.delivery-retry-seconds: retry interval after failures
-
webshop.market.max-active-listings: default max active listings per player -
webshop.market.supply.*: supply-chest mode parametersauto-refresh-thresholddefault-transfer-batch-sizemax-transfer-batch-sizedefault-transit-stockmax-transit-stock
webshop.maintenance.cleanup-interval-minuteswebshop.maintenance.pending-bind-retention-hourswebshop.maintenance.pending-password-retention-hourswebshop.maintenance.bind-request-retention-hourswebshop.maintenance.redeem-code-retention-days
webshop.logging.enabled-
webshop.logging.level:ERROR | WARN | INFO | DEBUG | TRACE webshop.logging.directorywebshop.logging.max-file-size-mbwebshop.logging.max-fileswebshop.logging.retention-days
webshop.admin-bootstrap.enabledwebshop.admin-bootstrap.usernamewebshop.admin-bootstrap.password-
webshop.admin-bootstrap.role(for exampleSUPER_ADMIN)
webshop.embedded-http.hostwebshop.embedded-http.portwebshop.embedded-http.static-root
database.hostdatabase.portdatabase.schemadatabase.usernamedatabase.passworddatabase.use-ssldatabase.pool-size
Note: placeholder defaults trigger protection checks and block normal startup.
exchange.shopcoin-to-gamecoin.enabledexchange.shopcoin-to-gamecoin.ratioexchange.gamecoin-to-shopcoin.enabledexchange.gamecoin-to-shopcoin.ratio
Exchange is directional. If one direction is disabled, related APIs return exchange_disabled.
currency.shopcoin.namecurrency.shopcoin.shortcurrency.gamecoin.namecurrency.gamecoin.short
These affect display only and do not change enum values.
-
economy.market.trade-fee-percent: seller-side fee -
economy.market.trade-tax-percent: buyer-side tax
Both can be changed dynamically in admin settings and are applied separately during market settlement.
-
economy.inflation-control.mode-
burn: destroy currency -
treasury: send to treasury account
-
economy.inflation-control.treasury-user-id
redis.enabledredis.hostredis.port
Current version does not wire Redis into production business flow yet.
- When Vault + an economy provider is available,
GAME_COINbalance is read from Vault and mirrored to local wallet tables. - When Vault is unavailable,
GAME_COINuses local wallet fields.
Warning
Wiki 已迁移至 https://docs.akihito.dpdns.org/category/webshopx/ ,当前 Wiki 不再更新,并将弃用。 This wiki has moved to https://docs.akihito.dpdns.org/category/webshopx/ . It is no longer updated and will be deprecated soon.
- 本 Wiki基于 WebShopX v1.1.2 编写。
- This Wiki is based on WebShopX v1.1.2.
Warning
Wiki 已迁移至 https://docs.akihito.dpdns.org/category/webshopx/ ,当前 Wiki 不再更新,并将弃用。 This wiki has moved to https://docs.akihito.dpdns.org/category/webshopx/ . It is no longer updated and will be deprecated soon.