返回 Skill 列表
extension
分类: 开发与工程无需 API Key

configuration-env

通过环境变量和.env文件安全地配置mjr.wtf。

person作者: jakexiaohubgithub

Primary references

  • .env.example (template)
  • README “Configuration” + “Authentication”

Core variables

  • DATABASE_URL (required): SQLite database file path (e.g. ./database.db)
  • AUTH_TOKENS (recommended): comma-separated bearer tokens
  • AUTH_TOKEN (legacy): single bearer token
  • BASE_URL (recommended): base URL used when constructing short links

Security-sensitive settings

  • SECURE_COOKIES=true in production behind HTTPS.
  • ALLOWED_ORIGINS: set explicit origins in production.
  • METRICS_AUTH_ENABLED=true if /metrics should not be public.