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

# Settings

> The Settings page allows you to view and configure various options for the operations system.

<CardGroup cols={2}>
  <Card title="User Onboarding Options" icon="user-plus" href="/en/operations/settings#authentication-%2F-access-control" horizontal />

  <Card title="Mailer Setup" icon="envelope" href="/en/operations/settings#mailer-setup" horizontal />

  <Card title="OAuth Setup" icon="user-shield" href="/en/operations/settings#oauth-setup" horizontal />

  <Card title="Resource Profile Management" icon="gauge" href="/en/operations/settings#resource-profile-management" horizontal />
</CardGroup>

<Frame>
  <img className="block rounded-md" src="https://files.cloudtype.io/ale-docs/operations/images/en/07_15.png" />
</Frame>

***

## Default Settings

### Authentication / Access Control

<Frame>
  <img className="block rounded-md" src="https://files.cloudtype.io/ale-docs/operations/images/en/07_16.png" />
</Frame>

> In the **Authentication / Access Control** section of the basic settings, you can configure various authentication and access-related settings, such as user onboarding options, session timeout duration, and allowed IP ranges for system access.

<Info>
  | User Onboarding Options                                    | Sign-up and Approval Process                                                                                                                                |
  | ---------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Approval after signing up                                  | Users can sign up via the dashboard and [need to be approved (activated) before gaining access.](/en/operations/user-management#activation)                 |
  | Registration by admin                                      | Sign-up via the dashboard is disabled. Only users [registered in the operations system](/en/operations/user-management#registration) can access the system. |
  | Public service                                             | Users who sign up via the dashboard can access the system without approval.                                                                                 |
</Info>

### Mailer Setup

<Frame>
  <img className="block rounded-md" src="https://files.cloudtype.io/ale-docs/operations/images/en/07_04.png" />
</Frame>

> You can choose between SMTP and Sendgrid as the mailer type. If you want to use a Gmail account as the SMTP server, follow the steps below.

<Note>
  To use a Gmail account as an SMTP server, ensure the following settings are applied:

  * Enable 2-Step Verification
  * If the administrator of an organizational account has disabled the App Passwords feature due to security policies, request the administrator to enable it
</Note>

<Steps>
  <Step title="Log in to the Gmail account you want to use as SMTP, click the settings icon at the top, and select 'See all settings'.">
    <Frame>
      <img className="block rounded-md" src="https://files.cloudtype.io/ale-docs/operations/images/en/07_05.png" />
    </Frame>
  </Step>

  <Step title="Go to the 'Forwarding and POP/IMAP' tab, enable IMAP, and click 'Save Changes' at the bottom.">
    <Frame>
      <img className="block rounded-md" src="https://files.cloudtype.io/ale-docs/operations/images/en/07_06.png" />
    </Frame>
  </Step>

  <Step title="Navigate to the Google Account Management page, search for 'App passwords' in the search bar, and select it.">
    <Frame>
      <img className="block rounded-md" src="https://files.cloudtype.io/ale-docs/operations/images/en/07_07.png" />
    </Frame>
  </Step>

  <Step title="Enter a custom name for the app and click 'Create'. You will receive a 16-character app password.">
    <Frame>
      <img className="block rounded-md" src="https://files.cloudtype.io/ale-docs/operations/images/en/07_08.png" />
    </Frame>
  </Step>

  <Step title="Fill in the fields in the ale mailer section as follows:">
    <Frame>
      <img className="block rounded-md" src="https://files.cloudtype.io/ale-docs/operations/images/en/07_10.png" />
    </Frame>

    * **Email sender**: The sender's email address
    * **Type**: SMTP
    * **SMTP Host**: smtp.gmail.com
    * **SMTP Port**: 465
    * **SMTP Username**: The Gmail address used for SMTP setup
    * **SMTP Password**: App password
    * **Secure Connection**: Enabled
  </Step>
</Steps>

## OAuth Setup

<Frame>
  <img className="block rounded-md" src="https://files.cloudtype.io/ale-docs/operations/images/en/07_17.png" />
</Frame>

<CardGroup cols={2}>
  <Card title="Add GitHub OAuth" icon="github" href="/en/authentication/github" horizontal />

  <Card title="Add Google OAuth" icon="google" href="/en/authentication/google" horizontal />
</CardGroup>

## Resource Profile Management

<Frame>
  <img className="block rounded-md" src="https://files.cloudtype.io/ale-docs/operations/images/en/07_11.png" />
</Frame>

> You can allocate predefined resource sets to spaces. Configure resource profiles as described below and [easily assign resources by applying resource profiles to spaces.](/en/operations/spaces#apply-a-resource-profile)

<Steps>
  <Step title="Set Profile Name and Display Name">
    <Frame>
      <img className="block rounded-md" src="https://files.cloudtype.io/ale-docs/operations/images/en/07_19.png" />
    </Frame>

    Click `Add` in the **Resource Quota** section and enter the profile name and the display name.
  </Step>

  <Step title="Configure Resource Values for On-Demand / Spot Types">
    <Frame>
      <img className="block rounded-md" src="https://files.cloudtype.io/ale-docs/operations/images/en/07_12.png" />
    </Frame>

    Configure resource values for each type. You can use only one type or mix both. **If no value is entered, the placeholder value will be applied.** Key fields include:

    * **vCPU / Memory / Disk**: Total resources allocated to the space
    * **Max vCPU / Memory / Disk**: Maximum resources per service
    * **Max Running**: Maximum number of services that can be deployed
    * **Max Replica**: Maximum number of replicas per service
    * **Node Group**: Specify `on-demand` or `spot`. See details below.

    <AccordionGroup>
      <Accordion title="On-Demand / Spot" defaultOpen={true}>
        > `ale` supports resource allocation based on instance types for efficient resource management. Specify `on-demand` or `spot` in the Node Group field to allocate resources accordingly.

        <Tip>
          Even if the cluster's worker nodes consist only of on-demand instances or if spot resources are unavailable, `ale` can still deploy services labeled as spot. These services will run on on-demand instances but will retain the spot label.
        </Tip>

        <Note>
          Services deployed with spot resources can be removed at once using the [Bulk Remove Spot Resources](/en/operations/spaces#bulk-remove-spot-resources) feature. For temporary services, deploying with spot resources can help manage cloud costs efficiently by using this feature.

          <Frame>
            <img className="block rounded-md" src="https://files.cloudtype.io/ale-docs/operations/images/en/07_21.png" />
          </Frame>
        </Note>

        <Info>
          The availability and pricing policies for on-demand and spot instances differ by CSP. Refer to the following links for more information:

          * [Amazon EC2 Spot](https://aws.amazon.com/ec2/spot/details/)
          * [GCP Spot VM](https://cloud.google.com/compute/docs/instances/spot)
          * [Azure Spot VM](https://learn.microsoft.com/azure/virtual-machines/spot-vms)
        </Info>
      </Accordion>
    </AccordionGroup>
  </Step>

  <Step title="General Settings (Domain Connections, Team Size, etc.)">
    <Frame>
      <img className="block rounded-md" src="https://files.cloudtype.io/ale-docs/operations/images/en/07_20.png" />
    </Frame>

    * **Domain**: Number of allowed custom domains (set to 0 to disable)
    * **Max Services**: Maximum number of deployable services (including on-demand and spot)
    * **Max Members**: Maximum number of team members allowed in the space
    * **Max Projects**: Maximum number of projects in the space
    * **Services per Environment**: Maximum services per environment(namespace)
    * **Others**: If the placeholder value is 0, it will be applied as unlimited.
  </Step>
</Steps>

<Tip>
  When a space is created, the `Default` profile is applied by default.
</Tip>

## Add Cluster

<Frame>
  <img className="block rounded-md" src="https://files.cloudtype.io/ale-docs/operations/images/en/07_14.png" />
</Frame>

> `ale` supports connecting to Kubernetes clusters from major CSPs as well as generic clusters. For more details on adding clusters, refer to the [Multi-Cluster page](/en/advanced/multi-cluster).
