linuxserver / docker-bookstack

A Docker container for the BookStack documentation wiki
GNU General Public License v3.0
797 stars 109 forks source link

Redirects to example.com #73

Closed vinothvkr closed 3 years ago

vinothvkr commented 3 years ago

linuxserver.io


Expected Behavior

Should use the host ip as app url

Current Behavior

Redirecting to example.com. If container created without "APP_URL" environment.

Steps to Reproduce

  1. Spin up latest version
  2. open the hostip:6875 in browser
  3. redirected to example.com/login

Environment

OS: Ubuntu 20.04 CPU architecture: x86_64 How docker service was installed: https://hub.docker.com/r/linuxserver/bookstack

Command used to create docker container (run/create/compose/screenshot)

Docker logs

github-actions[bot] commented 3 years ago

Thanks for opening your first issue here! Be sure to follow the issue template!

ssddanbrown commented 3 years ago

Just a note, I made a change in BookStack v0.30.5 that means APP_URL should be set and now, by default, The default .env.example file example of APP_URL is no longer commented by default (To encourage filling).

@vinothvkr You will likely need to either pass the APP_URL option or follow the instructions to edit the .env file: https://github.com/linuxserver/docker-bookstack#advanced-users-full-control-over-the-env-file

aptalca commented 3 years ago

@ssddanbrown thanks so much for the heads up. We'll make that var required in our readme and if unset, will query the external ip and set that