# 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 # 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 # Separator between guestbook entries. # BOOK_SEPARATOR=------------------------------------------------------------ # 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-header, .entry-name, # .entry-website, .entry-body, .entry-separator # 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: # Number of rows for the message textarea. # BOOK_TEXTAREA_ROWS=8 # Number of columns for the message textarea. # BOOK_TEXTAREA_COLS=60 # Custom HTML template file with {{title}}, {{form}}, {{entries}}, and {{style}} placeholders. # Uses built-in default if unset. # BOOK_TEMPLATE=./templates/default.html # Enable drawing canvas in submission form. Drawings are stored as PNG files in DATA_DIR/drawings/. # BOOK_ENABLE_DRAWINGS=false # Label for the drawing canvas. # BOOK_LABEL_DRAWING=Draw (optional): # Drawing canvas width in pixels. # BOOK_CANVAS_WIDTH=400 # Drawing canvas height in pixels. # BOOK_CANVAS_HEIGHT=200