Skip to content
Snippets Groups Projects
sample-cfg.yaml 1.44 KiB
Newer Older
Christian Pointner's avatar
Christian Pointner committed
store:
  audio:
    format: flac
    sample-rate: 44100
    #type: mysql
    type: postgres
    ## mysql: false, true, skip-verify
    ## postgres: require , verify-full, verify-ca, disable

    username: tank
    password: aura
    database: tank

    ## mysql: utf8mb4, utf8, ...
    ## will be ignored for postgres which will always use utf8 (1-4 bytes)

importer:
  temp-path: "/tmp"
### uncomment to enable authentication
# auth:
#   sessions:
#     ## defaults to 24h
#     max-age: 12h
#   oidc:
#     issuer-url: http://localhost:8000/openid
#     client-id: ${OIDC_CLIENT_ID}
#     client-secret: ${OIDC_CLIENT_SECRET}
#     callback-url: http://localhost:8040/auth/oidc/callback
#     login-timeout: 10m # defaults to 5 Minutes
#   passwd:
#     admin:
#       password: very-secret
#       all-shows: true
#     engine:
#       password: rather-secret
#       readonly: true
#       all-shows: true
#     hugo:
#       password: changeme
#       readonly: true
#       shows:
#         - hugo
#         - yet-another-hugo-show

### uncomment to enable CORS headers
### see: https://godoc.org/github.com/rs/cors#Options
# cors:
#   allowed-origins: ['*']
#   allowed-methods:
#     - GET
#     - PUT
#     - POST
#     - PATCH
#     - DELETE
#   allowed-headers: ['*']
#   allow-credentials: true