# Configure Self-Hosted Deployment

> Set up Python SDK to use Self-Hosted Deployment.

## Configuration parameters

To configure the Python SDK to use Self-Hosted Deployment, you need to provide three parameters:

* The Fully Qualified Domain Name to your Self-Hosted Deployment (example: `your-private-cloud-fqdn.com`)
* The path prefix to append to the Fully Qualified Domain Name to create the Self-Hosted Deployment base URL (example: `/backend`)
* The full URL to your Self-Hosted Deployment OpenID Connect (OIDC) configuration file (example: `https://your-private-cloud-fqdn.com/auth/realms/unity/.well-known/openid-configuration`)

### Configure from code

Use the following method *before calling initialize*:

```python
integration_creation = unity_cloud.set_private_cloud(fully_qualified_domain_name="my-fqdn",
                                                     openid_config_url="my-oidc-config-url",
                                                     path_prefix="my-path-prefix")
```

### Configure with environment variables

Ensure the appropriate environment variables are set *before running your python script*:

* `UNITY_CLOUD_SERVICES_FQDN`
* `UNITY_CLOUD_SERVICES_FQDN_PATH_PREFIX`
* `UNITY_CLOUD_SERVICES_OPENID_CONFIGURATION_URL`
