doc.rustdesk.com/content/self-host/client-configuration/hardcode-settings/_index.en.md

42 lines
1.6 KiB
Markdown
Raw Normal View History

---
2023-07-13 13:06:05 +02:00
title: Hardcoding Custom Settings
2023-01-18 09:49:34 +01:00
weight: 49
---
2023-10-10 21:43:03 +02:00
### Custom Server
{{% notice note %}}
2024-02-09 21:36:15 +01:00
To hardcode custom server settings into your executables you must [build](https://rustdesk.com/docs/en/dev/build/) the client yourself on your machine or [with GitHub Actions](https://rustdesk.com/docs/en/dev/build/all/). <br>
**Note**: [self-hosted runners](https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners) for Arm are used in our GitHub actions, please set it up yourself.
{{% /notice %}}
{{% notice note %}}
2023-03-01 13:34:01 +01:00
**If you set either of these values without setting the other, your executable will not work!**
{{% /notice %}}
2023-07-13 13:06:05 +02:00
You can set the following environment variables on your OS and RustDesk will use those variables when compiling your client rather than the default rustdesk.com servers.
2023-02-03 23:20:37 +01:00
If you do not know how to set an environment variable on your system you should be able to find documentation for your OS online that will explain this.
#### RENDEZVOUS_SERVER
2023-02-03 23:20:37 +01:00
This variable should be set to your server URL.
This should be a string such as
```
rustdesk.my-domain.com
```
2023-01-18 09:10:50 +01:00
#### RS_PUB_KEY
2023-10-21 21:50:32 +02:00
This variable will be your public key, more information on the key is available [here](https://rustdesk.com/docs/en/self-host/install/#key).
This should be a string such as
```
OeVuKk5nlHiXp+APNn0Y3pC1Iwpwn44JGqrQCsWqmBw=
```
2023-10-21 21:50:32 +02:00
2024-02-09 21:36:15 +01:00
#### API_SERVER
By default the API_SERVER runs on `http://rustdesk.my-domain.com:21114`, you'd better run it behind Nginx for security with HTTPS.
2023-11-09 09:48:52 +01:00
This should be a string such as
```
https://rustdesk.my-domain.com
```