mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-22 18:43:29 +00:00
808f10d428
* Implement UPSTASH_REDIS_NAMESPACE * Accept X-GitBook-Host and switch to multi mode when present * Format
27 lines
785 B
Bash
27 lines
785 B
Bash
# Mode to serve only a single space
|
|
# Ex: http://localhost:4000
|
|
# GITBOOK_MODE=single
|
|
# GITBOOK_SPACE_ID=your_space_id
|
|
# GITBOOK_TOKEN=your_token_here
|
|
|
|
# Mode to serve multiple spaces using the entire url
|
|
# Ex: http://docs.mycompany.com/page1
|
|
# GITBOOK_MODE=multi
|
|
|
|
# Mode to serve multiple spaces with the space url passed as a path
|
|
# Ex: http://localhost:4000/docs.mycompany.com/page1
|
|
# GITBOOK_MODE=multi-path
|
|
|
|
# Other options:
|
|
|
|
# Use a different GitBook environment by changing the API URL
|
|
# GITBOOK_API_URL=https://api.gitbook.com
|
|
|
|
# Use upstash for caching
|
|
# UPSTASH_REDIS_REST_URL
|
|
# UPSTASH_REDIS_REST_TOKEN
|
|
|
|
# And configure a namespace to use the same redis instance for multiple environment
|
|
# (Cache keys will be prefixed with this namespace)
|
|
# UPSTASH_REDIS_NAMESPACE=gitbook
|