mirror of
https://github.com/nocobase/nocobase.git
synced 2026-09-21 05:44:51 +08:00
* docs: add docker nginx and caddy installation guides * fix(proxy): support external proxy upstream port * fix(cli): keep manual proxy bundle appPort compatibility * feat(cli): support NocoBase image config * fix(cli): map no-nginx docker apps to the correct container port
2.0 KiB
2.0 KiB
title, description, keywords
| title | description | keywords |
|---|---|---|
| nb config set | Tài liệu tham khảo lệnh nb config set: đặt một mục cấu hình CLI. | nb config set,NocoBase CLI,đặt cấu hình |
nb config set
Đặt một mục cấu hình CLI. Xem nb config để biết các khóa cấu hình được hỗ trợ.
Cách dùng
nb config set <key> <value>
Tham số
| Tham số | Kiểu | Mô tả |
|---|---|---|
<key> |
string | Tên mục cấu hình. Xem nb config để biết các giá trị được hỗ trợ |
<value> |
string | Giá trị cấu hình, không được để trống |
Ví dụ
nb config set locale zh-CN
nb config set update.policy auto
nb config set license.pkg-url https://pkg.nocobase.com/
nb config set docker.network nocobase
nb config set docker.container-prefix nb
nb config set nb-image-registry dockerhub
nb config set nb-image-registry aliyun
nb config set nb-image-variant full
nb config set nb-image-variant full-no-nginx
nb config set bin.docker /usr/local/bin/docker
nb config set bin.caddy /opt/homebrew/bin/caddy
nb config set bin.git /usr/bin/git
nb config set bin.nginx /usr/sbin/nginx
nb config set bin.pnpm /usr/local/bin/pnpm
nb config set proxy.nb-cli-root /workspace
nb config set proxy.upstream-host host.docker.internal
nb config set bin.yarn yarn
Ghi chú
update.policyhỗ trợprompt,autovàoff, với giá trị mặc định làpromptnb-image-registryhỗ trợdockerhubvàaliyun, với giá trị mặc định làdockerhubnb-image-varianthỗ trợstandard,no-nginx,fullvàfull-no-nginx, với giá trị mặc định làfull