Skip to content

Instantly share code, notes, and snippets.

@AnalogJ
Created February 28, 2024 00:08
Show Gist options
  • Save AnalogJ/dab7b4a7d1d4fc8f20b227a60bcdc001 to your computer and use it in GitHub Desktop.
Save AnalogJ/dab7b4a7d1d4fc8f20b227a60bcdc001 to your computer and use it in GitHub Desktop.
Fasten Health Debug + Unsafe Endpoints config file
######################################################################
# 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:
allow_unsafe_endpoints: true
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://example.com/fasten/* vs http://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: '/opt/fasten/web.log' # absolute or relative paths allowed, eg. web.log
level: DEBUG
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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment