Files
gitbook/.env.example
T
Samy Pessé 808f10d428 Namespace cache and prepare handling staging requests (#13)
* Implement UPSTASH_REDIS_NAMESPACE

* Accept X-GitBook-Host and switch to multi mode when present

* Format
2023-11-27 15:50:41 +01:00

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