Add camo example config

This commit is contained in:
Calvin Montgomery 2017-05-29 10:24:49 -07:00
parent 22a9acfc90
commit e02bc46ed2
2 changed files with 14 additions and 0 deletions

1
.gitignore vendored
View File

@ -13,3 +13,4 @@ www/cache
google-drive-subtitles google-drive-subtitles
lib/ lib/
integration-test-config.json integration-test-config.json
conf/*.toml

13
conf/example/camo.toml Normal file
View File

@ -0,0 +1,13 @@
# Configuration for proxying images to a camo (or camo-compatible) proxy server.
# To use, copy to conf/camo.toml.
# More info on camo: https://github.com/atmos/camo
[camo]
enabled = true
server = 'https://my-camo-server'
# The key must match the `CAMO_KEY` environment variable passed to the camo server.
key = 'ABCDEFGH'
# Bypass the proxy for domains you trust that already support HTTPS and won't be harmful to users.
whitelisted-domains = [
'i.imgur.com',
'i.4cdn.org'
]