115 lines
3.6 KiB
Text
115 lines
3.6 KiB
Text
# Port to listen on (binds to 127.0.0.1).
|
|
# BOOK_PORT=8123
|
|
|
|
# Directory for guestbook entry files.
|
|
# BOOK_DATA_DIR=./data
|
|
|
|
# Site title shown in nav and page title.
|
|
# BOOK_SITE_TITLE=guestbook
|
|
|
|
# Telegram bot token. Optional — if unset, telegram moderation is disabled.
|
|
# BOOK_TELEGRAM_BOT_TOKEN=your-bot-token-here
|
|
|
|
# Telegram chat ID for moderation messages. Required if bot token is set.
|
|
# BOOK_TELEGRAM_CHAT_ID=0
|
|
|
|
# Seconds between retry attempts for failed Telegram notifications.
|
|
# BOOK_TELEGRAM_RETRY_INTERVAL=20
|
|
|
|
# Maximum number of retry attempts for failed Telegram notifications.
|
|
# BOOK_TELEGRAM_RETRY_LIMIT=3
|
|
|
|
# Seconds between pending entry reminders. Set to 0 to disable.
|
|
# BOOK_TELEGRAM_REMINDER_INTERVAL=86400
|
|
|
|
# Enable honeypot field for spam prevention.
|
|
# BOOK_ENABLE_HONEYPOT=true
|
|
|
|
# Allow new guestbook submissions. When false, the form is hidden and submissions are rejected.
|
|
# BOOK_ENABLE_SUBMISSIONS=true
|
|
|
|
# Show website field in form and render website links in entries.
|
|
# When false, the input is hidden, submitted values are ignored, and existing links are not displayed.
|
|
# BOOK_ENABLE_WEBSITE_LINKS=true
|
|
|
|
# Allow raw HTML/JS in entry names and message bodies. When false, HTML is escaped.
|
|
# Website URLs are always escaped regardless of this setting.
|
|
# BOOK_ENABLE_HTML_INJECTION=false
|
|
|
|
# Enable captcha on submission form.
|
|
# BOOK_ENABLE_CAPTCHA=false
|
|
|
|
# Captcha question displayed as a label.
|
|
# BOOK_CAPTCHA_QUESTION=What is my name?
|
|
|
|
# Captcha answer to validate against.
|
|
# BOOK_CAPTCHA_ANSWER=lew
|
|
|
|
# Require exact match (true) or just "contains" (false).
|
|
# BOOK_CAPTCHA_EXACT=false
|
|
|
|
# Require case-sensitive match.
|
|
# BOOK_CAPTCHA_CASESENSITIVE=false
|
|
|
|
# Maximum length for names. 0 for unlimited.
|
|
# BOOK_MAX_NAME_LENGTH=0
|
|
|
|
# Maximum length for messages. 0 for unlimited.
|
|
# BOOK_MAX_MESSAGE_LENGTH=0
|
|
|
|
# Maximum length for website URLs. 0 for unlimited.
|
|
# BOOK_MAX_WEBSITE_LENGTH=0
|
|
|
|
# Path to a CSS file. Takes precedence over BOOK_STYLE.
|
|
# BOOK_STYLE_FILE=./templates/default.css
|
|
|
|
# Custom CSS injected into a style tag.
|
|
# Classes: .guestbook-form, .guestbook-prompt, .guestbook-label, .guestbook-input,
|
|
# .guestbook-textarea, .guestbook-button, .entry, .entry-header, .entry-date,
|
|
# .entry-name, .entry-website, .entry-body
|
|
# BOOK_STYLE=
|
|
|
|
# Text shown above the form.
|
|
# BOOK_FORM_PROMPT=Thanks for visiting. Sign the guestbook!
|
|
|
|
# Submit button text.
|
|
# BOOK_BUTTON_TEXT=sign
|
|
|
|
# Label for the name field.
|
|
# BOOK_LABEL_NAME=Your name:
|
|
|
|
# Label for the website field.
|
|
# BOOK_LABEL_WEBSITE=Your website (optional):
|
|
|
|
# Label for the message field.
|
|
# BOOK_LABEL_MESSAGE=Your message:
|
|
|
|
# Message textarea width in pixels.
|
|
# BOOK_TEXTAREA_WIDTH=400
|
|
|
|
# Message textarea height in pixels.
|
|
# BOOK_TEXTAREA_HEIGHT=150
|
|
|
|
# Custom HTML template file with {{title}}, {{prompt}}, {{form}}, {{entries}}, and {{style}} placeholders.
|
|
# Uses built-in default if unset.
|
|
# BOOK_TEMPLATE=./templates/default.html
|
|
|
|
# Custom success page template shown after a successful submission.
|
|
# Supports {{title}} and {{style}} placeholders. Use <script> for dynamic behavior.
|
|
# Uses built-in templates/success.html if unset.
|
|
# BOOK_SUCCESS_TEMPLATE=./templates/success.html
|
|
|
|
# Enable drawing canvas in submission form. Drawings are stored as PNG files in DATA_DIR/drawings/.
|
|
# BOOK_ENABLE_DRAWINGS=false
|
|
|
|
# Drawing canvas width in pixels.
|
|
# BOOK_CANVAS_WIDTH=400
|
|
|
|
# Drawing canvas height in pixels.
|
|
# BOOK_CANVAS_HEIGHT=200
|
|
|
|
# Enable voice note recording in submission form. Voice notes are stored as WebM files in DATA_DIR/voice_notes/.
|
|
# BOOK_ENABLE_VOICE_NOTES=false
|
|
|
|
# Maximum voice note duration in seconds. Max file size is derived as duration * 10KB.
|
|
# BOOK_VOICE_NOTE_MAX_DURATION=20
|