Config
This commit is contained in:
parent
ceebd53626
commit
5dc6ca05ce
6 changed files with 187 additions and 24 deletions
38
example-config.yaml
Normal file
38
example-config.yaml
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
---
|
||||
# Mesozoa listens to this address
|
||||
# It should be a local address, that receives traffic from the reverse-proxy.
|
||||
listen: 127.0.0.1:8504
|
||||
# Mesozoa relays accepted traffic to this address
|
||||
pass: 127.0.0.1:8000
|
||||
|
||||
# Duration (in seconds) of validity of a challenge
|
||||
challenge-timeout: 3600
|
||||
# PoW difficulty
|
||||
# Mean PoW duration is multiplied by 2 when this number is incremented by 1.
|
||||
# (TODO: unused for now, needs dynamic challenge page)
|
||||
#target-zeros: 15
|
||||
|
||||
# Action applied when no policy matches
|
||||
# (see below for legal values)
|
||||
default-action: challenge
|
||||
|
||||
# Policy groups are evaluated in order.
|
||||
# The first matching group stops evaluation.
|
||||
# Policies within a group are all evaluated at the same time.
|
||||
# The first matching policy (order from the list here) is applied and stops evaluation.
|
||||
# `name` is for logging, put anything you want.
|
||||
# `first-line` is a regex for the first line of the HTTP request.
|
||||
# `action` is one of the following:
|
||||
# - "allow": relay without challenge
|
||||
# - "challenge": ask Pow challenge and relay iff client succeeds
|
||||
# - "drop": drop connection and do not relay
|
||||
policy-groups:
|
||||
- - name: Favicon
|
||||
first-line: "^GET /favicon.ico "
|
||||
action: allow
|
||||
- name: robots.txt
|
||||
first-line: "^GET /robots.txt "
|
||||
action: allow
|
||||
- name: Favicon
|
||||
first-line: "^GET /favicon.ico "
|
||||
action: allow
|
||||
Loading…
Add table
Add a link
Reference in a new issue