installWizard.js 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. export function InstallWizard(params = {}) {
  2. return {
  3. 'mail.use-tls': {
  4. field: {
  5. disabledReason: null,
  6. default: false,
  7. required: true,
  8. disabled: false,
  9. allowEmpty: true,
  10. isSet: true,
  11. },
  12. },
  13. 'mail.use-ssl': {
  14. field: {
  15. disabledReason: null,
  16. default: false,
  17. required: true,
  18. disabled: false,
  19. allowEmpty: true,
  20. isSet: true,
  21. },
  22. },
  23. 'mail.username': {
  24. field: {
  25. disabledReason: null,
  26. default: '',
  27. required: true,
  28. disabled: false,
  29. allowEmpty: true,
  30. isSet: true,
  31. },
  32. },
  33. 'mail.port': {
  34. field: {
  35. disabledReason: null,
  36. default: 25,
  37. required: true,
  38. disabled: false,
  39. allowEmpty: false,
  40. isSet: true,
  41. },
  42. },
  43. 'system.admin-email': {
  44. field: {
  45. disabledReason: null,
  46. default: '',
  47. required: true,
  48. disabled: false,
  49. allowEmpty: false,
  50. isSet: true,
  51. },
  52. },
  53. 'mail.password': {
  54. field: {
  55. disabledReason: null,
  56. default: '',
  57. required: true,
  58. disabled: false,
  59. allowEmpty: true,
  60. isSet: true,
  61. },
  62. },
  63. 'mail.from': {
  64. field: {
  65. disabledReason: null,
  66. default: 'root@localhost',
  67. required: true,
  68. disabled: false,
  69. allowEmpty: false,
  70. isSet: true,
  71. },
  72. },
  73. 'system.url-prefix': {
  74. field: {
  75. disabledReason: 'diskPriority',
  76. default: '',
  77. required: true,
  78. disabled: true,
  79. allowEmpty: false,
  80. isSet: true,
  81. },
  82. },
  83. 'auth.allow-registration': {
  84. field: {
  85. disabledReason: null,
  86. default: false,
  87. required: true,
  88. disabled: false,
  89. allowEmpty: true,
  90. isSet: true,
  91. },
  92. },
  93. 'beacon.anonymous': {
  94. field: {
  95. disabledReason: null,
  96. default: false,
  97. required: true,
  98. disabled: false,
  99. allowEmpty: true,
  100. isSet: true,
  101. },
  102. },
  103. 'mail.host': {
  104. field: {
  105. disabledReason: null,
  106. default: 'localhost',
  107. required: true,
  108. disabled: false,
  109. allowEmpty: false,
  110. isSet: true,
  111. },
  112. },
  113. ...params,
  114. };
  115. }