diff --git a/content/docs/configuration/index.mdx b/content/docs/configuration/index.mdx new file mode 100644 index 0000000..7e9003f --- /dev/null +++ b/content/docs/configuration/index.mdx @@ -0,0 +1,12 @@ +--- +title: "fxManager Configuration" +description: Learn how to setup fxManager features. +--- + +import { Callout } from 'fumadocs-ui/components/callout'; + +Welcome to the configuration hub for `fxManager`. You can review the configuration guides to assist you in setting up your fxManager instance. + + + This documentation is actively expanding. Sections below indicate features currently available or planned for upcoming releases. + diff --git a/content/docs/configuration/oauth.mdx b/content/docs/configuration/oauth.mdx new file mode 100644 index 0000000..d5370d7 --- /dev/null +++ b/content/docs/configuration/oauth.mdx @@ -0,0 +1,46 @@ +--- +title: "OAuth" +description: Setting up OAuth for fxManager. +--- + +import { Step, Steps } from 'fumadocs-ui/components/steps'; +import { Callout } from 'fumadocs-ui/components/callout'; + +# Discord OAuth + + + + ### Create a Discord application. + + 1. Go to the [Discord Developer Portal](https://discord.com/developers/applications) and log in with your Discord account. + 2. Click the **New Application** button in the top right corner. + 3. Enter a name for your application (e.g., `fxManager`), accept the developer terms, and click **Create**. + + + ### Configure Redirect URIs + + 1. On your application's dashboard, navigate to the **OAuth2** tab from the left sidebar. + 2. Under the **Redirects** section, click **Add Redirect**. + 3. Enter your webpanel's callback URL, e.g: + * `https://yourdomain.com/api/auth/callback/discord` + * `https://your_ip:port/api/auth/callback/discord` + + + Make sure that your redirect URI matches precisely between the Discord Developer Portal and your webpanel configuration to avoid redirect_uri_mismatch errors during authentication. + + + + ### Copy Credentials + + 1. Still under the **OAuth2** tab, locate the **Client Information** section. + 2. Copy your **Client ID**. + 3. Click **Reset Secret** to generate your **Client Secret**, and copy it securely (make sure to save it, as Discord won't show it again). + + + ### Configure fxManager Webpanel + + 1. Open your `fxManager` webpanel settings dashboard, and navigate to the authentication tab. + 2. Paste both your **Client ID** and **Client Secret** into their respective fields. + 3. Enable OAuth integration in the webpanel settings. + +