README.md in rack-traffic-signal-0.1.3 vs README.md in rack-traffic-signal-0.1.4
- old
+ new
@@ -55,9 +55,14 @@
# This config is used to skip_path? method.
# Only add path to this option, mantenance mode is not skipped.
config.skip_paths = [/^\/users\/12345/]
+ # This config is used to skip_path? method.
+ # Only add path to this option, mantenance mode is not skipped.
+ # If request header has `X-RACK-TRAFFIC-SIGNAL-SECRET=<secret word>`, Rack::TrafficSignal.has_secret returns true.
+ config.secret_word = 'secret'
+
# Default setting
config.default_status = 503
config.default_content_type = 'application/json'
config.default_body = { error: 'error' }.to_json