From e6e90214e23698dfd01691704972646675094e87 Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Tue, 24 Nov 2020 19:05:56 +0100 Subject: [PATCH] Add example configurations --- .env.example | 7 +++++++ hoc.toml.example | 15 +++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 .env.example create mode 100644 hoc.toml.example diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..00e5df2 --- /dev/null +++ b/.env.example @@ -0,0 +1,7 @@ +HOC_REPODIR='./repos' +HOC_CACHEDIR='./cache' +HOC_PORT=8080 +HOC_HOST='0.0.0.0' +HOC_WORKERS=4 + +HOC_BASE_URL='http://0.0.0.0:8080' diff --git a/hoc.toml.example b/hoc.toml.example new file mode 100644 index 0000000..a716ef6 --- /dev/null +++ b/hoc.toml.example @@ -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"