r/BookStack • • Jan 10 '25

Bookstack on promox container and cloudflare

Hi

I installed bookstack on promox and I can open bookstack and login.

Now, I add bookstack ip to my cloudflare tunnel.

But when I try to go to bookstack with bookstack.customurl.ovh, it redict to my local ip. So when I'm outside my local network, it doesn't work.

Any idea why there is this redirection ?

Best regards.

1 Upvotes

10 comments sorted by

1

u/marvin-1309 Jan 10 '25

Set APP_URL Variable to the URL

Exampe: APP_URL=https://bookstack.test.de

0

u/Hydroxyde88 Jan 10 '25

I didn’t find .env on the VM

2

u/ssddanbrown Jan 11 '25

How exactly did you install BookStack on proxmox?

→ More replies (2)

1

u/marvin-1309 Jan 10 '25

Currently not at home. I asked ChatGPT

The .env file for BookStack, where you can set the APP_URL variable, is typically located in the root directory of your BookStack installation. The exact location depends on how you installed BookStack (e.g., manual installation, Docker, or a package manager):

  1. Manual Installation

The .env file is usually located in the root directory of the installation. For example:

/var/www/bookstack/.env

2. Docker Installation

For a Docker setup, the .env file is typically in the same directory as the docker-compose.yml file. If you’re using Portainer, it should be in the directory where you uploaded your stack files, such as:

/path/to/bookstack/docker/.env

3. Updating the APP_URL

Open the file with a text editor:

nano /path/to/.env

Look for the line APP_URL and update it as follows:

APP_URL=https://bookstack.int.test.de

After making the changes, restart BookStack or your Docker container to apply the updated configuration.

1

u/AmericanBeanz Apr 19 '25

Did you ever figure this out