generated from PackagrIO/goweb-template
-
-
Notifications
You must be signed in to change notification settings - Fork 79
/
config.yaml
34 lines (32 loc) · 1.33 KB
/
config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
######################################################################
# Version
#
# version specifies the version of this configuration file schema, not
# the fasten binary. There is only 1 version available at the moment
version: 1
web:
listen:
port: 8080
host: 0.0.0.0
# if you're using a reverse proxy like apache/nginx, you can override this value to serve fasten on a subpath.
# eg. http:https://example.com/fasten/* vs http:https://example.com:8080
# basepath: `/fasten`
# leave empty unless behind a path prefixed proxy
basepath: ''
src:
# the location on the filesystem where webapp javascript + css is located
frontend:
path: /opt/fasten/web
database:
# encryption:
# key: ''
type: 'sqlite' # postgres will be supported in the future, but is completely **BROKEN** at the moment.
location: '/opt/fasten/db/fasten.db' # if postgres (**BROKEN**) use a DSN, eg. `host=localhost user=gorm password=gorm dbname=gorm port=9920 sslmode=required TimeZone=Asia/Shanghai`
log:
file: '' # absolute or relative paths allowed, eg. web.log
level: INFO
jwt:
issuer:
# you should ABSOLUTELY change this value before deploying Fasten.
# TODO: in future versions, this will be generated on first run with a random value, and stored as a System Setting.
key: "thisismysupersecuressessionsecretlength"