# Setting up a domain name

To run UI Bakery on a server instead of a localhost, you will be required to [provide the following variables](https://docs.uibakery.io/on-premise/install-and-update/updating-environment-variables):

```bash
UI_BAKERY_APP_SERVER_NAME=http://YOUR_DOMAIN_OR_IP:3030
UI_BAKERY_PORT=3030
```

{% hint style="danger" %}
UI\_BAKERY\_PORT variable must match the port in the UI\_BAKERY\_APP\_SERVER\_NAME variable
{% endhint %}

In your DNS provider, configure the following records:

* A or CNAME record with UI Bakery instance host.

Then [modify your environment variables](https://docs.uibakery.io/on-premise/install-and-update/updating-environment-variables) with the following values:

```bash
UI_BAKERY_APP_SERVER_NAME=https://YOUR_DOMAIN
UI_BAKERY_PORT=80
```
