There was an error while loading. Please reload this page.
1 parent 53e84ad commit 0edac3cCopy full SHA for 0edac3c
1 file changed
README.md
@@ -511,6 +511,23 @@ light.lock(Stoplight::Color::GREEN)
511
light.unlock
512
```
513
514
+### Admin
515
+
516
+Admin Panel can work in an read-only which could be useful for observability. To enabled read-only mode:
517
518
+```ruby
519
+Stoplight::Admin.configure do |config|
520
+ config.read_only = true
521
+end
522
+```
523
524
+Read-only mode could be turned on for a pre-built docker image by passing `STOPLIGHT_ADMIN_READ_ONLY` environment
525
+variable:
526
527
+```sh
528
+docker run -e REDIS_URL=redis://localhost:6378 -e STOPLIGHT_ADMIN_READ_ONLY=true --net=host bolshakov/stoplight-admin
529
530
531
## Rails Integration
532
533
Wrap controller actions with minimal effort:
0 commit comments