# 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
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.uibakery.io/on-premise/networking-and-security/setting-up-a-domain-name.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
