config-vals.json.js 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. export default [
  2. {
  3. key: 'domain',
  4. description: `
  5. Domain name of the Puter instance. This may be used to generate URLs
  6. in the UI. If "allow_all_host_values" is false or undefined, the domain
  7. will be used to validate the host header of incoming requests.
  8. `,
  9. example_values: [
  10. 'example.com',
  11. 'subdomain.example.com'
  12. ]
  13. },
  14. {
  15. key: 'protocol',
  16. description: `
  17. The protocol to use for URLs. This should be either "http" or "https".
  18. `,
  19. example_values: [
  20. 'http',
  21. 'https'
  22. ]
  23. },
  24. {
  25. key: 'static_hosting_domain',
  26. description: `
  27. This domain name will be used for public site URLs. For example: when
  28. you right-click a directory and choose "Publish as Website".
  29. This domain should point to the same server. If you have a LAN configuration
  30. you could set this to something like
  31. \`site.192.168.555.12.nip.io\`, replacing
  32. \`192.168.555.12\` with a valid IP address belonging to the server.
  33. `
  34. },
  35. {
  36. key: 'allow_all_host_values',
  37. description: `
  38. If true, Puter will accept any host header value in incoming requests.
  39. This is useful for development, but should be disabled in production.
  40. `,
  41. },
  42. {
  43. key: 'allow_nipio_domains',
  44. description: `
  45. If true, Puter will allow requests with host headers that end in nip.io.
  46. This is useful for development, LAN, and VPN configurations.
  47. `
  48. },
  49. {
  50. key: 'http_port',
  51. description: `
  52. The port to listen on for HTTP requests.
  53. `,
  54. },
  55. {
  56. key: 'enable_public_folders',
  57. description: `
  58. If true, any /username/Public directory will be available to all
  59. users, including anonymous users.
  60. `
  61. },
  62. {
  63. key: 'disable_temp_users',
  64. description: `
  65. If true, new users will see the login/signup page instead of being
  66. automatically logged in as a temporary user.
  67. `
  68. },
  69. {
  70. key: 'disable_user_signup',
  71. description: `
  72. If true, the signup page will be disabled and the backend will not
  73. accept new user registrations.
  74. `
  75. },
  76. {
  77. key: 'disable_fallback_mechanisms',
  78. description: `
  79. A general setting to prevent any fallback behavior that might
  80. "hide" errors. It is recommended to set this to true when
  81. debugging, testing, or developing new features.
  82. `
  83. }
  84. ]