mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
Added docs for v3 options
This commit is contained in:
parent
dd7be1788a
commit
8002e118ad
@ -37,7 +37,10 @@ Available unleash options includes:
|
||||
|
||||
- **databaseUrl** - the postgress database url to connect to. Should include username/password.
|
||||
- **port** - Which port should the unleash-server bind to?
|
||||
- **enableLegacyRoutes** (boolean) - allows you to turn on/off support for legacy routes to support older clients.
|
||||
- **enableLegacyRoutes** (boolean) - allows you to turn on/off support for legacy routes to support older clients. Enabled by default.
|
||||
- **serverMetrics** (boolean) - Use this option to turn of prometheus metrics.
|
||||
- **preHook** (function) - This is a hook if you need to provide any middlewares to express before `unleash` adds any. Express app instance is injected as first arguement.
|
||||
- **preRouterHook** (function) - Use this to register custom express middlewares before the `unleash` specific routers are added. This is typically how you would register custom middlewares to handle authentication.
|
||||
|
||||
## How do I configure the log output?
|
||||
|
||||
|
@ -3,10 +3,9 @@ Generally the intention is that `unleash-server` should always provide support f
|
||||
|
||||
|
||||
## Upgrading from v2.x to v3.x
|
||||
Upgrade `unleash-server` to v3, which still supports v2 clients. Then upgrade all your clients to v3. When you have upgraded all your clients you should consider to turn off legacy routes, used by v2 clients. Read more about this option in in the [gettings started guide](https://github.com/Unleash/unleash/blob/master/docs/getting-started.md#2-or-programmatically)
|
||||
|
||||
|
||||
First your should upgrade the `unleash-server` to v3 (which still supports v2 clients). After this is done you should upgrade all your clients to v3.
|
||||
|
||||
After upgrading all your clients you should consider turning off legacy routes, used by v2 clients. Read more about this option in in the [gettings started guide](https://github.com/Unleash/unleash/blob/master/docs/getting-started.md#2-or-programmatically)
|
||||
|
||||
## Upgrading from v1.0 to v2.0
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user