Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 51 lines (43 sloc) 1.129 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
%YAML 1.2
---
Application:
    debug: True
    xsrf_cookies: False
    whitelist:
      - 10.0.0.0/8
      - 192.168.1.0/24
      - 1.2.3.4/32

HTTPServer:
    no_keep_alive: False
    ports: [8000]
    xheaders: True

Logging:
    filename: log.txt
    format: "%(module)-12s# %(lineno)-5d %(levelname) -10s %(asctime)s %(message)s"
    level: debug

# As of 0.2.1 having this automatically creates a RabbitMQ connection for your tinman app
# It is exposed as application.tinman.rabbitmq
RabbitMQ:
    host: localhost
    port: 5672
    username: guest
    password: guest
    virtual_host: /

# Route / Request Handler mapping
# New format includes better support for complex regex where previous would break YAML's sequence format
Routes:

  # Homepage
  -
    - /
    - test.example.Home

 # Auto-generated pixel using the regex supported syntax, put re before the URI regex in the list
-
    # /c1f1-7c5d9e0f.gif
    - re
    - /(c[a-f0-9]f[a-f0-9]{1,3}-[a-f0-9]{8}).gif
    - test.example.Pixel

 # Any URL not matched up to this point
 -
    - .*
    - tornado.web.RedirectHandler
    - {"url": "http://www.github.com"}
Something went wrong with that request. Please try again.