website.yml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # 监控应用类型名称(与文件名保持一致) eg: linux windows tomcat mysql aws...
  2. app: website
  3. # 强制固定必须参数 - host(ipv4,ipv6,域名)
  4. param:
  5. # field-字段名称标识符
  6. - field: host
  7. # name-参数字段显示名称
  8. name: 主机Host
  9. # type-字段类型,样式(大部分映射input标签type属性)
  10. type: host
  11. # 是否是必输项 true-必填 false-可选
  12. required: true
  13. - field: port
  14. name: 端口
  15. type: number
  16. # 当type为number时,用range表示范围
  17. range: '[0,65535]'
  18. required: true
  19. defaultValue: 80
  20. - field: uri
  21. name: 相对路径
  22. type: text
  23. # 当type为text时,用limit表示字符串限制大小
  24. limit: 200
  25. required: false
  26. placeholder: '网站地址除IP端口外的路径 例如:/console'
  27. - field: ssl
  28. name: 启用HTTPS
  29. # 当type为boolean时,前端用switch展示开关
  30. type: boolean
  31. required: true
  32. - field: authType
  33. name: 认证方式
  34. type: radio
  35. required: false
  36. hide: true
  37. # 当type为radio单选框,checkbox复选框时,option表示可选项值列表 {name1:value1,name2:value2}
  38. options:
  39. - label: Basic Auth
  40. value: Basic Auth
  41. - label: Digest Auth
  42. value: Digest Auth
  43. - field: username
  44. name: 用户名
  45. type: text
  46. # 当type为text时,用limit表示字符串限制大小
  47. limit: 20
  48. required: false
  49. hide: true
  50. - field: password
  51. name: 密码
  52. type: password
  53. required: false
  54. hide: true