Sha256: b37deda221ccdb68e245b4a6c2c8ef7783ca38d9054e4b3d6b898ce3bce07847
Contents?: true
Size: 1.15 KB
Versions: 3
Compression:
Stored size: 1.15 KB
Contents
# -*- coding: utf-8 -*- Rack::TrafficSignal.setup do |config| # config.internal_ips = [] # config.default_status = 503 # config.default_content_type = 'application/json' # require 'json' # config.default_body = '{}'.to_json # config.maintenance_group = { # users: { # read: [ # { methods: [:get], path: '/api/users', status: 404 }, # { methods: [:get], path: %r{/api/users/\d+}, status: 404, content_type: 'application/json' }, # ], # write: [ # { methods: [:post], path: '/api/users' body: { error: 'maintenance mode' }.to_json }, # { methods: [:put, :delete], path: '%r{/api/users/\d+}' } # ] # }, # articles: { # read: [ # { methods: [:get], path: '/api/articles' }, # { methods: [:get], path: %r{/api/articles/\d+} }, # ], # write: [ # { methods: [:post], path: '/api/articles' }, # { methods: [:put, :delete], path: '%r{/api/articles/\d+}' } # ] # }, # } # config.maintenance_status_by do # [:users_all, :articles_write] # end # config.skip_by do |env| # false # end end
Version data entries
3 entries across 3 versions & 1 rubygems