form.yaml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. enabled: true
  2. built_in_css: true
  3. inline_css: true
  4. refresh_prevention: false
  5. client_side_validation: true
  6. inline_errors: false
  7. files:
  8. multiple: false # To allow multiple files, default is single
  9. limit: 10 # Number of allowed files per field (multiple required)
  10. destination: 'self@' # Where to upload the files (path and self@, page@, theme@)
  11. avoid_overwriting: false # Prevent files with the same name to be overridden. Date prefix will be added
  12. random_name: false # Generate a random 15 long string name for the uploaded files
  13. filesize: 0 # Maximum file size allowed (in MB)
  14. accept: # List of mime/types or file extensions allowed (ie, image/*,.zip,.mp4)
  15. - image/*
  16. recaptcha:
  17. version: 2-checkbox
  18. theme: light
  19. site_key:
  20. secret_key:
  21. turnstile:
  22. theme: light # options: [light | dark]
  23. site_key:
  24. secret_key:
  25. basic_captcha:
  26. type: characters # options: [characters | math]
  27. chars:
  28. length: 6 # number of chars to output
  29. font: zxx-noise.ttf # options: [zxx-noise.ttf | zxx-camo.ttf | zxx-xed.ttf | zxx-sans.ttf]
  30. bg: '#cccccc' # 6-char hex color
  31. text: '#333333' # 6-char hex color
  32. size: 24 # font size in px
  33. start_x: 5 # start position in x direction in px
  34. start_y: 30 # start position in y direction in px
  35. box_width: 135 # box width in px
  36. box_height: 40 # box height in px
  37. math:
  38. min: 1 # smallest digit
  39. max: 12 # largest digit
  40. operators: ['+','-','*'] # operators that can be used in math