9
0
mirror of https://github.com/donlon/cloudflare-error-page.git synced 2026-01-06 15:41:45 +00:00
Files
cloudflare-error-page/editor/server/config.example.toml
2025-12-29 01:47:15 +08:00

34 lines
920 B
TOML

# Directory of static files for editor (.html, .js, ...), relative to instance dir.
# Overridden by environment varable 'STATIC_DIR'
STATIC_DIR = '../../web/dist'
# Url prefix for app urls
URL_PREFIX = ''
# Digits of item name in shared links
SHARE_LINK_DIGITS = 7
# Use short share url (without '/s' path)
SHORT_SHARE_URL = false
# Icon URL for rendered pages
PAGE_ICON_URL = 'https://virt.moe/cferr/editor/assets/icon-{status}-32x32.png'
# MIME type of page icon
PAGE_ICON_TYPE = 'image/png'
# Image URL for rendered pages
PAGE_IMAGE_URL = 'https://virt.moe/cferr/editor/assets/icon-{status}-large-white.png'
# Set to true if trust X-Forwarded-For/X-Forwarded-Proto header
BEHIND_PROXY = true
# Some random secret, will be auto-generated if empty
SECRET_KEY = ''
# Main database URI
SQLALCHEMY_DATABASE_URI = 'sqlite:///database.db'
# Rate limit storage for Flask-Limiter
RATELIMIT_STORAGE_URI = 'memory://'