From e02bc46ed2b82baad676f43cea5c43e7616d1377 Mon Sep 17 00:00:00 2001 From: Calvin Montgomery Date: Mon, 29 May 2017 10:24:49 -0700 Subject: [PATCH] Add camo example config --- .gitignore | 1 + conf/example/camo.toml | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 conf/example/camo.toml diff --git a/.gitignore b/.gitignore index 44336c28..193830fb 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ www/cache google-drive-subtitles lib/ integration-test-config.json +conf/*.toml diff --git a/conf/example/camo.toml b/conf/example/camo.toml new file mode 100644 index 00000000..4e81ca35 --- /dev/null +++ b/conf/example/camo.toml @@ -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' +]