1 # Full list of environment variables that can be used with BookStack.
2 # Selectively copy these to your '.env' file as required.
3 # Each option is shown with it's default value.
4 # Do not copy this whole file to use as your '.env' file.
6 # Application environment
7 # Can be 'production', 'development', 'testing' or 'demo'
11 # Shows advanced debug information and errors.
12 # CAN EXPOSE OTHER VARIABLES, LEAVE DISABLED
16 # Used for encryption where needed.
17 # Run `php artisan key:generate` to generate a valid key.
18 APP_KEY=SomeRandomString
21 # This must be the root URL that you want to host BookStack on.
22 # All URL's in BookStack will be generated using this value.
23 APP_URL=https://example.com
25 # Application default language
26 # The default language choice to show.
27 # May be overridden by user-preference or visitor browser settings.
30 # Auto-detect language for public visitors.
31 # Uses browser-sent headers to infer a language.
32 # APP_LANG will be used if such a header is not provided.
33 APP_AUTO_LANG_PUBLIC=true
36 # Host can contain a port (localhost:3306) or a separate DB_PORT option can be used.
39 DB_DATABASE=database_database
40 DB_USERNAME=database_username
41 DB_PASSWORD=database_user_password
44 # Can be 'smtp', 'mail' or 'sendmail'
47 # Mail sending options
48 MAIL_FROM=mail@bookstackapp.com
49 MAIL_FROM_NAME=BookStack
58 # Cache & Session driver to use
59 # Can be 'file', 'database', 'memcached' or 'redis'
63 # Session configuration
65 SESSION_COOKIE_NAME=bookstack_session
66 SESSION_SECURE_COOKIE=false
69 # Can be used to prevent conflicts multiple BookStack instances use the same store.
70 CACHE_PREFIX=bookstack
72 # Memcached server configuration
73 # If using a UNIX socket path for the host, set the port to 0
74 # This follows the following format: HOST:PORT:WEIGHT
75 # For multiple servers separate with a comma
76 MEMCACHED_SERVERS=127.0.0.1:11211:100
78 # Redis server configuration
79 # This follows the following format: HOST:PORT:DATABASE
80 # or, if using a password: HOST:PORT:DATABASE:PASSWORD
81 # For multiple servers separate with a comma. These will be clustered.
82 REDIS_SERVERS=127.0.0.1:6379:0
85 # Queue not really currently used but may be configurable in the future.
86 # Would advise not to change this for now.
89 # Storage system to use
90 # Can be 'local', 'local_secure' or 's3'
93 # Amazon S3 storage configuration
94 STORAGE_S3_KEY=your-s3-key
95 STORAGE_S3_SECRET=your-s3-secret
96 STORAGE_S3_BUCKET=s3-bucket-name
97 STORAGE_S3_REGION=s3-bucket-region
99 # S3 endpoint to use for storage calls
100 # Only set this if using a non-Amazon s3-compatible service such as Minio
101 STORAGE_S3_ENDPOINT=https://my-custom-s3-compatible.service.com:8001
104 # Used as a base for any generated image urls.
105 # An s3-format URL will be generated if not set.
108 # Authentication method to use
109 # Can be 'standard' or 'ldap'
112 # Social authentication configuration
113 # All disabled by default.
114 # Refer to https://www.bookstackapp.com/docs/admin/third-party-auth/
117 AZURE_APP_SECRET=false
119 AZURE_AUTO_REGISTER=false
120 AZURE_AUTO_CONFIRM_EMAIL=false
123 DISCORD_APP_SECRET=false
124 DISCORD_AUTO_REGISTER=false
125 DISCORD_AUTO_CONFIRM_EMAIL=false
127 FACEBOOK_APP_ID=false
128 FACEBOOK_APP_SECRET=false
129 FACEBOOK_AUTO_REGISTER=false
130 FACEBOOK_AUTO_CONFIRM_EMAIL=false
133 GITHUB_APP_SECRET=false
134 GITHUB_AUTO_REGISTER=false
135 GITHUB_AUTO_CONFIRM_EMAIL=false
138 GITLAB_APP_SECRET=false
139 GITLAB_BASE_URI=false
140 GITLAB_AUTO_REGISTER=false
141 GITLAB_AUTO_CONFIRM_EMAIL=false
144 GOOGLE_APP_SECRET=false
145 GOOGLE_SELECT_ACCOUNT=false
146 GOOGLE_AUTO_REGISTER=false
147 GOOGLE_AUTO_CONFIRM_EMAIL=false
151 OKTA_APP_SECRET=false
152 OKTA_AUTO_REGISTER=false
153 OKTA_AUTO_CONFIRM_EMAIL=false
156 SLACK_APP_SECRET=false
157 SLACK_AUTO_REGISTER=false
158 SLACK_AUTO_CONFIRM_EMAIL=false
161 TWITCH_APP_SECRET=false
162 TWITCH_AUTO_REGISTER=false
163 TWITCH_AUTO_CONFIRM_EMAIL=false
166 TWITTER_APP_SECRET=false
167 TWITTER_AUTO_REGISTER=false
168 TWITTER_AUTO_CONFIRM_EMAIL=false
170 # LDAP authentication configuration
171 # Refer to https://www.bookstackapp.com/docs/admin/ldap-auth/
176 LDAP_USER_FILTER=false
178 LDAP_TLS_INSECURE=false
179 LDAP_EMAIL_ATTRIBUTE=mail
180 LDAP_DISPLAY_NAME_ATTRIBUTE=cn
181 LDAP_FOLLOW_REFERRALS=true
183 # LDAP group sync configuration
184 # Refer to https://www.bookstackapp.com/docs/admin/ldap-auth/
185 LDAP_USER_TO_GROUPS=false
186 LDAP_GROUP_ATTRIBUTE="memberOf"
187 LDAP_REMOVE_FROM_GROUPS=false
189 # Disable default third-party services such as Gravatar and Draw.IO
190 # Service-specific options will override this option
191 DISABLE_EXTERNAL_SERVICES=false
193 # Use custom avatar service, Sets fetch URL
194 # Possible placeholders: ${hash} ${size} ${email}
195 # If set, Avatars will be fetched regardless of DISABLE_EXTERNAL_SERVICES option.
196 # Example: AVATAR_URL=https://seccdn.libravatar.org/avatar/${hash}?s=${size}&d=identicon
199 # Enable Draw.io integration
202 # Default item listing view
203 # Used for public visitors and user's without a preference
204 # Can be 'list' or 'grid'
206 APP_VIEWS_BOOKSHELVES=grid
208 # Page revision limit
209 # Number of page revisions to keep in the system before deleting old revisions.
210 # If set to 'false' a limit will not be enforced.
213 # Allow <script> tags in page content
214 # Note, if set to 'true' the page editor may still escape scripts.
215 ALLOW_CONTENT_SCRIPTS=false
217 # Indicate if robots/crawlers should crawl your instance.
218 # Can be 'true', 'false' or 'null'.
219 # The behaviour of the default 'null' option will depend on the 'app-public' admin setting.
220 # Contents of the robots.txt file can be overridden, making this option obsolete.