From f6b46a1e903475ed6a5468776dd5ad092014c906 Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Mon, 22 Mar 2021 13:33:56 +0100 Subject: [PATCH] Add config so tests will work --- hoc.toml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 hoc.toml diff --git a/hoc.toml b/hoc.toml new file mode 100644 index 0000000..a716ef6 --- /dev/null +++ b/hoc.toml @@ -0,0 +1,15 @@ +# every parameter can also be set (or overwritten) by passing an environment +# variable namend `HOC_`, e.g. +# `HOC_BASE_URL='https://hitsofcode.com' ./hoc` + +# these config parameters have default values and must not explicitly be set +repodir = "./repos" +cachedir = "./cache" +port = 8080 +host = "0.0.0.0" +workers = 4 + +# these parameters don't have default values and must be set + +# this should be the public base URL of the service, e.g. `https://hitsofcode.com` +base_url = "http://0.0.0.0:8080"