3
0
corteza/pkg/options/auth.yaml

24 lines
533 B
YAML

imports:
- time
docs:
title: Authentication
props:
- name: secret
env: AUTH_JWT_SECRET
description: |-
Secret used for signing JWT tokens.
[IMPORTANT]
====
If JWT secret is not set, system auto-generates one from DB_DSN and HOSTNAME environment variables.
Generated secret will change if you change any of variables.
====
- name: expiry
type: time.Duration
env: AUTH_JWT_EXPIRY
default: time.Hour * 24 * 30
description: Experation time for the auth JWT tokens.