TypeDialog/config/web/config.ncl

40 lines
982 B
Plaintext
Raw Permalink Normal View History

{
server = {
host | default = "localhost",
port | default = 3000,
cors_enabled | default = true,
cors_origins | default = ["localhost", "127.0.0.1"],
debug | default = false,
hot_reload | default = false,
},
form = {
title | default = "Web Form",
description | default = "Interactive web form",
validation = {
client_validation | default = true,
show_errors_inline | default = true,
validate_on_change | default = true,
},
},
output = {
format | default = "json",
},
html = {
css_framework | default = "none",
inline_styles | default = false,
responsive | default = true,
dark_mode | default = true,
},
submission = {
method | default = "post",
webhook_url | default = "",
redirect_on_success | default = false,
redirect_url | default = "",
},
security = {
csrf_enabled | default = true,
rate_limit | default = 0,
require_https | default = false,
},
}