> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dezerx.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Pelican

> Follow this docs to setup Pelican!

## Configuring Pelican.

<Steps>
  <Step title="Open the Pelican configuration">
    Open the Pelican configuration file by running the following command:

    ```bash theme={null}
    sudo nano /etc/pelican/config.yml
    ```
  </Step>

  <Step title="Configure allowed origins">
    Find the following line in the configuration file:

    ```yaml theme={null}
    allowed_origins: []
    ```

    Modify it to include the allowed origins for Spartan:

    ```yaml theme={null}
    allowed_origins:
      - https://dash.example.com
      - http://dash.example.com
    ```

    <Info>
      Replace `https://dash.example.com` and `http://dash.example.com` with your actual dashboard URLs.
    </Info>
  </Step>

  <Step title="Restart Wings">
    After saving the configuration changes, restart the Wings service to apply them:

    ```bash theme={null}
    sudo systemctl restart wings
    ```
  </Step>
</Steps>

## Configure Pelican in Spartan

<Steps>
  <Step title="Get an Application API key">
    * In your Pelican admin panel, navigate to the Application API section.
    * Generate a new API key with appropriate permissions.
    * Copy the generated key.

          <img src="https://mintcdn.com/dezerx/pn8T9dwRYvXHPgY0/public/services/pelican/step-2.png?fit=max&auto=format&n=pn8T9dwRYvXHPgY0&q=85&s=1f3e5ecffa46cd7fab1c804644a9426d" alt="Application API Configuration" width="1866" height="912" data-path="public/services/pelican/step-2.png" />
  </Step>

  <Step title="Get a Client API key">
    * Navigate to your Pterodactyl account settings.
    * Go to the API Credentials section.
    * Create a new client API key.
    * Copy the generated key.

          <img src="https://mintcdn.com/dezerx/L4WuLRtlI4RXaMqP/public/services/pelican/step-1.png?fit=max&auto=format&n=L4WuLRtlI4RXaMqP&q=85&s=eb4a0eb16b76dbafb6035f2994f83f34" alt="Client API Configuration" width="1866" height="912" data-path="public/services/pelican/step-1.png" />
  </Step>

  <Step title="Configure Pelican in Spartan">
    * Paste the Application API key in the designated field.
    * Paste the Client API key in the designated field.
    * Enter your Pterodactyl panel URL.
    * Click the **Test Connection** button to verify the setup.

          <img src="https://mintcdn.com/dezerx/pn8T9dwRYvXHPgY0/public/services/pelican/step-3.png?fit=max&auto=format&n=pn8T9dwRYvXHPgY0&q=85&s=726de6f8963546d21516aac285330c72" alt="Spartan Configuration Panel" width="1866" height="912" data-path="public/services/pelican/step-3.png" />
  </Step>

  <Step title="Configure the product">
    Use the product configuration options shown below:

    <img src="https://mintcdn.com/dezerx/pn8T9dwRYvXHPgY0/public/services/pelican/step-4.png?fit=max&auto=format&n=pn8T9dwRYvXHPgY0&q=85&s=1efb659c70a1a9301d0437130c2216aa" alt="Product Configuration" width="1866" height="912" data-path="public/services/pelican/step-4.png" />
  </Step>
</Steps>

## Troubleshooting

If you encounter any issues:

* Verify that your API keys have the correct permissions
* Ensure your Pterodactyl panel URL is correct and accessible
* Check that the `allowed_origins` configuration includes your Spartan dashboard URL
* Make sure the Wings service has been restarted after configuration changes
