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' +]