forked from PeachCloud/peach-workspace
update auth docs
This commit is contained in:
parent
35ff408365
commit
5c4ef4a529
|
@ -39,9 +39,7 @@ _Note: Networking functionality requires peach-network microservice to be runnin
|
||||||
|
|
||||||
### Environment
|
### Environment
|
||||||
|
|
||||||
Authentication is enabled by default. It can be disabled by setting the `DISABLE_ROCKET_AUTH` environment variable to `true`:
|
**Deployment Mode**
|
||||||
|
|
||||||
`export DISABLE_ROCKET_AUTH=true`
|
|
||||||
|
|
||||||
The web application deployment mode is configured with the `ROCKET_ENV` environment variable:
|
The web application deployment mode is configured with the `ROCKET_ENV` environment variable:
|
||||||
|
|
||||||
|
@ -49,6 +47,14 @@ The web application deployment mode is configured with the `ROCKET_ENV` environm
|
||||||
|
|
||||||
Other deployment modes are `dev` and `prod`. Read the [Rocket Environment Configurations docs](https://rocket.rs/v0.5-rc/guide/configuration/#environment-variables) for further information.
|
Other deployment modes are `dev` and `prod`. Read the [Rocket Environment Configurations docs](https://rocket.rs/v0.5-rc/guide/configuration/#environment-variables) for further information.
|
||||||
|
|
||||||
|
**Authentication**
|
||||||
|
|
||||||
|
Authentication is disabled in `development` mode and enabled by default when running the application in `production` mode. It can be disabled by setting the `ROCKET_DISABLE_AUTH` environment variable to `true`:
|
||||||
|
|
||||||
|
`export ROCKET_DISABLE_AUTH=true`
|
||||||
|
|
||||||
|
**Logging**
|
||||||
|
|
||||||
Logging is made available with `env_logger`:
|
Logging is made available with `env_logger`:
|
||||||
|
|
||||||
`export RUST_LOG=info`
|
`export RUST_LOG=info`
|
||||||
|
|
Loading…
Reference in New Issue