Skip to content

Commit 162d893

Browse files
committed
Updated .env.example to encorage use of setting APP_URL
For the purposes of secure URL generation and to avoid common problems found when people are using reverse proxies.
1 parent 6d8b060 commit 162d893

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.env.example

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@
1212
APP_KEY=SomeRandomString
1313

1414
# Application URL
15-
# Remove the hash below and set a URL if using BookStack behind
16-
# a proxy or if using a third-party authentication option.
1715
# This must be the root URL that you want to host BookStack on.
18-
# All URL's in BookStack will be generated using this value.
19-
#APP_URL=https://example.com
16+
# All URLs in BookStack will be generated using this value
17+
# to ensure URLs generated are consistent and secure.
18+
# If you change this in the future you may need to run a command
19+
# to update stored URLs in the database. Command example:
20+
# php artisan bookstack:update-url https://old.example.com https://new.example.com
21+
APP_URL=https://example.com
2022

2123
# Database details
2224
DB_HOST=localhost
@@ -28,8 +30,8 @@ DB_PASSWORD=database_user_password
2830
# Can be 'smtp' or 'sendmail'
2931
MAIL_DRIVER=smtp
3032

31-
# Mail sender options
32-
MAIL_FROM_NAME=BookStack
33+
# Mail sender details
34+
MAIL_FROM_NAME="BookStack"
3335
MAIL_FROM=bookstack@example.com
3436

3537
# SMTP mail options

0 commit comments

Comments
 (0)