49 lines
914 B
TOML
49 lines
914 B
TOML
# Web Backend - Default Configuration
|
|
# HTTP server and web form rendering
|
|
|
|
[server]
|
|
host = "localhost"
|
|
port = 3000
|
|
# CORS settings
|
|
cors_enabled = true
|
|
cors_origins = ["localhost", "127.0.0.1"]
|
|
|
|
[form]
|
|
title = "Web Form"
|
|
description = "Interactive web form"
|
|
|
|
[form.validation]
|
|
validate_on_change = true
|
|
show_errors_inline = true
|
|
client_validation = true
|
|
|
|
[output]
|
|
format = "json"
|
|
|
|
[html]
|
|
# CSS framework: bootstrap, tailwind, none
|
|
css_framework = "none"
|
|
# Include inline styles
|
|
inline_styles = false
|
|
# Mobile responsive
|
|
responsive = true
|
|
# Dark mode support
|
|
dark_mode = true
|
|
|
|
[submission]
|
|
# Submission method: post, put, patch
|
|
method = "post"
|
|
# Optional webhook URL for submissions
|
|
webhook_url = ""
|
|
# Redirect after submission
|
|
redirect_on_success = false
|
|
redirect_url = ""
|
|
|
|
[security]
|
|
# CSRF protection
|
|
csrf_enabled = true
|
|
# Rate limiting (requests per minute)
|
|
rate_limit = 0
|
|
# Require HTTPS
|
|
require_https = false
|