Skip to content

Commit 14475c8

Browse files
committed
feat: change default APP_URL value
Running a freshly-clone repository fails as the Bookstack container redirects to `example.com`, which isn't hosting a Bookstack instance. Updating the `APP_URL` to be the value set by default and referred to in the documention will prevent this.
1 parent 991e169 commit 14475c8

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -76,17 +76,17 @@ Note that if you want to use LDAP, `$` has to be escape like `\$`, i.e. `-e "LDA
7676
-e DB_DATABASE=bookstack \
7777
-e DB_USERNAME=bookstack \
7878
-e DB_PASSWORD=secret \
79-
-e APP_URL=http://example.com \
79+
-e APP_URL=http://localhost:8080 \
8080
-e APP_KEY=SomeRandomStringWith32Characters \
8181
-p 8080:8080 \
8282
--name="bookstack_25.2.1" \
8383
solidnerd/bookstack:25.2.1
8484
```
8585

8686
The APP_URL parameter should be the base URL for your BookStack instance without
87-
a trailing slash. For example:
87+
a trailing slash, but including any port numbers. For example:
8888

89-
`APP_URL=http://example.com`
89+
`APP_URL=http://example.com` or `APP_URL=http://localhost:8080`.
9090

9191
The following environment variables are required for Bookstack to start:
9292
- `APP_KEY`

docker-compose.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,12 @@ services:
1919
- DB_DATABASE=bookstack
2020
- DB_USERNAME=bookstack
2121
- DB_PASSWORD=secret
22-
#set the APP_ to the URL of bookstack without without a trailing slash APP_URL=https://example.com
23-
- APP_URL=http://example.com
22+
# Set the APP_ to the URL of bookstack without without a trailing slash,
23+
# but including any port numbers. For example, one of:
24+
# APP_URL=https://example.com
25+
# APP_URL=http://localhost:8080
26+
# APP_URL=https://wiki.example.com:8443
27+
- APP_URL=http://localhost:8080
2428
# APP_KEY is used for encryption where needed, so needs to be persisted to
2529
# preserve decryption abilities.
2630
# Can run `php artisan key:generate` to generate a key

0 commit comments

Comments
 (0)