You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
4.1 KiB
4.1 KiB
# Configuration
Type: object
Golang URL Shortener Configuration
| Name | Type | Description | Example |
|---|---|---|---|
| $schema | string | ||
| Handlers | object | Handlers holds the configuration for the handlers package | |
| Store | object | Store holds the configuration values for the storage package |
Handlers
Type: object
Handlers holds the configuration for the handlers package
| Name | Type | Description | Example |
|---|---|---|---|
| BaseURL | string | Required for the authentification via OAuth. E.g. 'http://mydomain.com' | |
| EnableDebugMode | boolean | Activates more detailed logging to the stdout | |
| ListenAddr | string | Consists of 'IP:Port', normally the value ':8080' e.g. is enough | |
| OAuth | object | OAuth holds the OAuth specific settings | |
| Secret | string | Used for encryption of the JWT and for the CookieJar. Will be randomly generated when it isn't set |
OAuth
Type: object
OAuth holds the OAuth specific settings
| Name | Type | Description | Example |
|---|---|---|---|
| object | Google holds the OAuth configuration for the Google provider |
Type: object
Google holds the OAuth configuration for the Google provider
| Name | Type | Description | Example |
|---|---|---|---|
| ClientID | string | ClientID which you get from console.cloud.google.com | |
| ClientSecret | string | ClientSecret which get from console.cloud.google.com |
Store
Type: object
Store holds the configuration values for the storage package
| Name | Type | Description | Example |
|---|---|---|---|
| DBPath | string | relative or absolute path of your bolt DB | |
| ShortedIDLength | integer | Length of the random generated ID which is used for new shortened URLs |