Skip to content
This repository was archived by the owner on Mar 16, 2021. It is now read-only.

Configuration

Max Schmitt edited this page Nov 10, 2017 · 5 revisions

Configuration

The configuration is a JSON file, an example is located here.

Field Value Type
Store Store Object object
Handlers Handlers Object object

Store

Field Value Type Example
DBPath Relative or absolute path of your bolt DB string main.db
ShortedIDLength Length of the random generated ID which is used for new shortened URLs uint 4

Handlers

Field Value Type Example
ListenAddr Consists of 'IP:Port', normally the value ':8080' e.g. is enough string :8080
BaseURL Origin URL, required for the authentication via OAuth string http://shortener.google.com
EnableDebugMode Activates more detailed logging bool true
Secret Used for encryption of the JWT and for the CookieJar string Will be randomly generated when it isn't set
OAuth OAuth Object object

OAuth Config

Field Value Type
Google Google Object object

Google

Field Value Type
ClientID ClientID which you get from console.cloud.google.com string
ClientSecret ClientSecret which get from console.cloud.google.com string
Clone this wiki locally