# Joplin Server: Problems and suggestions caused by the parameter "APP\_BASE\_URL"

**URL:** <https://discourse.joplinapp.org/t/joplin-server-problems-and-suggestions-caused-by-the-parameter-app-base-url/26115>\
**Category:** Features\
**Created:** [20 June 2022 12:10 UTC](https://discourse.joplinapp.org/t/joplin-server-problems-and-suggestions-caused-by-the-parameter-app-base-url/26115 "2022-06-20T12:10:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![s4j4](https://avatars.discourse-cdn.com/v4/letter/s/ecccb3/32.png) [@s4j4](https://discourse.joplinapp.org/u/s4j4)\
**Post date:** [20 June 2022 12:10 UTC](https://discourse.joplinapp.org/t/joplin-server-problems-and-suggestions-caused-by-the-parameter-app-base-url/26115/1 "2022-06-20T12:10:51Z")

</div>

# Problems caused by parameter "APP\_BASE\_URL"

1. The parameter “APP\_BASE\_URL” increases the difficulty of reverse proxy configuration. In the built-in reverse proxy of the NAS, only some simple parameters can be defined, and the command: “proxy\_set\_header Host $host;” cannot be added, which makes it impossible to configure the reverse proxy.

2. A bigger problem: If "APP\_BASE\_URL" is configured as an external network domain name, the machines on the internal network can only be synchronized through the external network, and the synchronization speed is very slow; if it is configured as an internal network IP, the machines on the external network cannot be synchronized.

# Suggest

When “APP\_BASE\_URL” is not set, it is allowed to disable this parameter, on the one hand, it can simplify the difficulty of reverse proxy configuration, on the other hand, it can make the synchronization method more flexible.

---

<div class="post-metadata">

**Author:** ![MrKanister](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/mrkanister/32/20054_2.png) [@MrKanister](https://discourse.joplinapp.org/u/MrKanister)\
**Post date:** [20 June 2022 18:17 UTC](https://discourse.joplinapp.org/t/joplin-server-problems-and-suggestions-caused-by-the-parameter-app-base-url/26115/2 "2022-06-20T18:17:34Z")

</div>

> [@s4j4](#):
>
> If "APP\_BASE\_URL" is configured as an external network domain name, the machines on the internal network can only be synchronized through the external network

You could work around this by using a local DNS, like Pi-Hole. With this you can map the external domain name to the local IP.

---

<div class="post-metadata">

**Author:** ![s4j4](https://avatars.discourse-cdn.com/v4/letter/s/ecccb3/32.png) [@s4j4](https://discourse.joplinapp.org/u/s4j4)\
**Post date:** [20 June 2022 23:19 UTC](https://discourse.joplinapp.org/t/joplin-server-problems-and-suggestions-caused-by-the-parameter-app-base-url/26115/3 "2022-06-20T23:19:40Z")

</div>

After adding the domain name and Intranet IP using hosts, the certificate cannot be trusted and cannot be synchronized.

---

<div class="post-metadata">

**Author:** ![MrKanister](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/mrkanister/32/20054_2.png) [@MrKanister](https://discourse.joplinapp.org/u/MrKanister)\
**Post date:** [27 June 2022 13:57 UTC](https://discourse.joplinapp.org/t/joplin-server-problems-and-suggestions-caused-by-the-parameter-app-base-url/26115/4 "2022-06-27T13:57:27Z")

</div>

Please provide the exact line of your set `APP_BASE_URL` with a placeholder like `my-domain.net`.
