From 1157bbd789c2882334e06712dbe22fb123aa260e Mon Sep 17 00:00:00 2001 From: Mathias Date: Wed, 2 Jan 2019 02:21:57 +0100 Subject: [PATCH] add example configuration file --- config.example.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 config.example.yml diff --git a/config.example.yml b/config.example.yml new file mode 100644 index 0000000..9ea005a --- /dev/null +++ b/config.example.yml @@ -0,0 +1,38 @@ +# Example configuration file for the server. +# Save it to `config.yml` when edited + +server: + port: 80 # the port the HTTP server will listen on + + ssl: + enabled: false # if https should be enabled + redirecttohttps: true # redirect to https if site is accessed by http + port: 443 # the https port + certfile: # the cert file (leave empty when using letsencrypt) + certkey: # the cert key (leave empty when using letsencrypt) + letsencrypt: + enabled: false # if the certificate should be requested from letsencrypt + accepttos: false # if you accept the tos from letsencrypt + cache: data/certs # the directory of the cache from letsencrypt + hosts: # the hosts for which letsencrypt should request certificates + - mydomain.tld + - myotherdomain.tld + + responseheaders: # response headers are added to every response (default: none) + Access-Control-Allow-Origin: "*" + Access-Control-Allow-Methods: "GET,POST" + + stream: + allowedorigins: # allowed origins for websocket connections (same origin is always allowed) + - ".+.example.com" + - "otherdomain.com" + +database: # for database see (configure database section) + dialect: sqlite3 + connection: data/gotify.db + +defaultuser: # on database creation, gotify creates an admin user + name: admin # the username of the default user + pass: admin # the password of the default user +passstrength: 10 # the bcrypt password strength (higher = better but also slower) +uploadedimagesdir: data/images # the directory for storing uploaded images \ No newline at end of file