settings.mdx 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. ---
  2. title: Settings
  3. description: Panel configuration and user credentials. All endpoints live under
  4. /panel/api/setting and require a logged-in session or Bearer token.
  5. full: true
  6. _openapi:
  7. preload:
  8. - ./public/openapi.json
  9. toc:
  10. - depth: 2
  11. title: 'Return every panel setting: web server, Telegram bot, subscription,
  12. security, LDAP. The full JSON blob that the Settings page edits.'
  13. url: '#return-every-panel-setting-web-server-telegram-bot-subscription-security-ldap-the-full-json-blob-that-the-settings-page-edits'
  14. - depth: 2
  15. title: Return the computed default settings based on the request host. Useful to
  16. preview what a fresh install would use.
  17. url: '#return-the-computed-default-settings-based-on-the-request-host-useful-to-preview-what-a-fresh-install-would-use'
  18. - depth: 2
  19. title: Return the shipped (factory) default value per browser-safe setting key,
  20. so clients can tell a stored value apart from the default it would fall
  21. back to. Per-install material (secret, panelGuid, mTLS keys) and
  22. credential fields are never included.
  23. url: '#return-the-shipped-factory-default-value-per-browser-safe-setting-key-so-clients-can-tell-a-stored-value-apart-from-the-default-it-would-fall-back-to-per-install-material-secret-panelguid-mtls-keys-and-credential-fields-are-never-included'
  24. - depth: 2
  25. title: Persist every setting at once. The body mirrors the shape returned by
  26. /all. Invalid values (bad ports, missing cert pairs, etc.) are rejected
  27. before write.
  28. url: '#persist-every-setting-at-once-the-body-mirrors-the-shape-returned-by-all-invalid-values-bad-ports-missing-cert-pairs-etc-are-rejected-before-write'
  29. - depth: 2
  30. title: Validate any regular expression with the backend Go RE2 compiler without
  31. saving it.
  32. url: '#validate-any-regular-expression-with-the-backend-go-re2-compiler-without-saving-it'
  33. - depth: 2
  34. title: Change the panel admin username and password. Requires the current
  35. credentials for verification. The session is refreshed with the new
  36. values on success.
  37. url: '#change-the-panel-admin-username-and-password-requires-the-current-credentials-for-verification-the-session-is-refreshed-with-the-new-values-on-success'
  38. - depth: 2
  39. title: Restart the entire 3x-ui process after a 3-second grace period. The
  40. connection drops immediately; the panel comes back online ~5-10 seconds
  41. later.
  42. url: '#restart-the-entire-3x-ui-process-after-a-3-second-grace-period-the-connection-drops-immediately-the-panel-comes-back-online-5-10-seconds-later'
  43. - depth: 2
  44. title: Test SMTP connection with stage-by-stage reporting (connect, auth, send).
  45. Returns structured result with stage and message.
  46. url: '#test-smtp-connection-with-stage-by-stage-reporting-connect-auth-send-returns-structured-result-with-stage-and-message'
  47. - depth: 2
  48. title: Test Telegram bot connection by sending a test message to the configured
  49. chat.
  50. url: '#test-telegram-bot-connection-by-sending-a-test-message-to-the-configured-chat'
  51. - depth: 2
  52. title: Test Discord bot connection by sending a test embed to the configured
  53. channel.
  54. url: '#test-discord-bot-connection-by-sending-a-test-embed-to-the-configured-channel'
  55. - depth: 2
  56. title: Return the built-in default Xray JSON config template that ships with
  57. this panel version.
  58. url: '#return-the-built-in-default-xray-json-config-template-that-ships-with-this-panel-version'
  59. structuredData:
  60. headings:
  61. - content: 'Return every panel setting: web server, Telegram bot, subscription,
  62. security, LDAP. The full JSON blob that the Settings page edits.'
  63. id: return-every-panel-setting-web-server-telegram-bot-subscription-security-ldap-the-full-json-blob-that-the-settings-page-edits
  64. - content: Return the computed default settings based on the request host. Useful
  65. to preview what a fresh install would use.
  66. id: return-the-computed-default-settings-based-on-the-request-host-useful-to-preview-what-a-fresh-install-would-use
  67. - content: Return the shipped (factory) default value per browser-safe setting
  68. key, so clients can tell a stored value apart from the default it
  69. would fall back to. Per-install material (secret, panelGuid, mTLS
  70. keys) and credential fields are never included.
  71. id: return-the-shipped-factory-default-value-per-browser-safe-setting-key-so-clients-can-tell-a-stored-value-apart-from-the-default-it-would-fall-back-to-per-install-material-secret-panelguid-mtls-keys-and-credential-fields-are-never-included
  72. - content: Persist every setting at once. The body mirrors the shape returned by
  73. /all. Invalid values (bad ports, missing cert pairs, etc.) are
  74. rejected before write.
  75. id: persist-every-setting-at-once-the-body-mirrors-the-shape-returned-by-all-invalid-values-bad-ports-missing-cert-pairs-etc-are-rejected-before-write
  76. - content: Validate any regular expression with the backend Go RE2 compiler
  77. without saving it.
  78. id: validate-any-regular-expression-with-the-backend-go-re2-compiler-without-saving-it
  79. - content: Change the panel admin username and password. Requires the current
  80. credentials for verification. The session is refreshed with the new
  81. values on success.
  82. id: change-the-panel-admin-username-and-password-requires-the-current-credentials-for-verification-the-session-is-refreshed-with-the-new-values-on-success
  83. - content: Restart the entire 3x-ui process after a 3-second grace period. The
  84. connection drops immediately; the panel comes back online ~5-10
  85. seconds later.
  86. id: restart-the-entire-3x-ui-process-after-a-3-second-grace-period-the-connection-drops-immediately-the-panel-comes-back-online-5-10-seconds-later
  87. - content: Test SMTP connection with stage-by-stage reporting (connect, auth,
  88. send). Returns structured result with stage and message.
  89. id: test-smtp-connection-with-stage-by-stage-reporting-connect-auth-send-returns-structured-result-with-stage-and-message
  90. - content: Test Telegram bot connection by sending a test message to the
  91. configured chat.
  92. id: test-telegram-bot-connection-by-sending-a-test-message-to-the-configured-chat
  93. - content: Test Discord bot connection by sending a test embed to the configured
  94. channel.
  95. id: test-discord-bot-connection-by-sending-a-test-embed-to-the-configured-channel
  96. - content: Return the built-in default Xray JSON config template that ships with
  97. this panel version.
  98. id: return-the-built-in-default-xray-json-config-template-that-ships-with-this-panel-version
  99. contents: []
  100. ---
  101. {/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}
  102. export default function Layout(props) {
  103. const { APIPage, OpenAPIPage } = props.components ?? {};
  104. // "APIPage" is the old name from v10, this allows both for backward compatibility
  105. const Comp = OpenAPIPage ?? APIPage;
  106. return (
  107. <>
  108. {props.children}
  109. <Comp document="./public/openapi.json" webhooks={[]} operations={[{"path":"/panel/api/setting/all","method":"post"},{"path":"/panel/api/setting/defaultSettings","method":"post"},{"path":"/panel/api/setting/factoryDefaults","method":"post"},{"path":"/panel/api/setting/update","method":"post"},{"path":"/panel/api/setting/validateRegex","method":"post"},{"path":"/panel/api/setting/updateUser","method":"post"},{"path":"/panel/api/setting/restartPanel","method":"post"},{"path":"/panel/api/setting/testSmtp","method":"post"},{"path":"/panel/api/setting/testTgBot","method":"post"},{"path":"/panel/api/setting/testDiscord","method":"post"},{"path":"/panel/api/setting/getDefaultJsonConfig","method":"get"}]} showTitle />
  110. </>
  111. );
  112. }