Advertisement
Guest User

Untitled

a guest
Oct 4th, 2019
189
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. _format_version: "1.1"
  2. services:
  3. - connect_timeout: 60000
  4.   host: mockbin.org
  5.   name: orders
  6.   port: 80
  7.   protocol: http
  8.   read_timeout: 60000
  9.   retries: 5
  10.   write_timeout: 60000
  11.   routes:
  12.   - name: foo
  13.     paths:
  14.    - /
  15.     preserve_host: false
  16.     protocols:
  17.    - http
  18.     - https
  19.     regex_priority: 0
  20.     strip_path: false
  21.     https_redirect_status_code: 426
  22.   plugins:
  23.   - name: key-auth
  24.     config:
  25.       anonymous: null
  26.       hide_credentials: false
  27.       key_in_body: false
  28.       key_names:
  29.      - apikey
  30.       run_on_preflight: true
  31.     enabled: true
  32.     run_on: first
  33.     protocols:
  34.    - grpc
  35.     - grpcs
  36.     - http
  37.     - https
  38. consumers:
  39. - username: harry
  40.   plugins:
  41.   - name: ip-restriction
  42.     config:
  43.       blacklist: null
  44.       whitelist:
  45.      - 172.17.0.1/16
  46.       - 10.1.193.64/32
  47.     enabled: true
  48.     run_on: first
  49.     protocols:
  50.    - grpc
  51.     - grpcs
  52.     - http
  53.     - https
  54.   keyauth_credentials:
  55.   - key: foo
  56. - username: harry2
  57.   keyauth_credentials:
  58.   - key: bar
Advertisement
RAW Paste Data Copied
Advertisement