mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
8ace30ee23
Newer Laravel uses Symfony mailer instead of SwiftMailer, and that means that some configs and functionality have changed In this change, we update config/mail.php with the new config layout and name/functionality changes of note: * New configuration layout supporting lots of new/different mailers * MAIL_DRIVER has become MAIL_MAILER, though we'll support both * MAIL_ENCRYPTION is mostly useless, and we mark it as such -- symfony mailer detects which type of encryption to use automagically. * MAIL_TLS_VERIFY_PEER is now available in case of self-signed certificates on the mail server, of if you want to access it by a different name, or by IP Accordingly, we also update the .env examples, docker configs, and the .env builder in the snipeit.sh installation script with the above changes
55 lines
1.4 KiB
Bash
55 lines
1.4 KiB
Bash
# --------------------------------------------
|
|
# REQUIRED: BASIC APP SETTINGS
|
|
# --------------------------------------------
|
|
#APP_ENV=develop
|
|
#APP_DEBUG=false
|
|
#APP_KEY=Change_this_key_or_snipe_will_get_ya
|
|
#APP_URL=http://127.0.0.1:32782
|
|
#APP_TIMEZONE=US/Pacific
|
|
#APP_LOCALE=en
|
|
|
|
|
|
# --------------------------------------------
|
|
# REQUIRED: DATABASE SETTINGS
|
|
# --------------------------------------------
|
|
DB_CONNECTION=mysql
|
|
DB_PREFIX=null
|
|
DB_DUMP_PATH='/usr/bin'
|
|
|
|
|
|
# --------------------------------------------
|
|
# REQUIRED: OUTGOING MAIL SERVER SETTINGS
|
|
# --------------------------------------------
|
|
MAIL_MAILER=smtp
|
|
MAIL_TLS_VERIFY_PEER=${MAIL_TLS_VERIFY_PEER}
|
|
MAIL_FROM_ADDR=${MAIL_ENV_FROM_ADDR}
|
|
MAIL_FROM_NAME=${MAIL_ENV_FROM_NAME}
|
|
MAIL_REPLYTO_ADDR=${MAIL_ENV_FROM_ADDR}
|
|
MAIL_REPLYTO_NAME=${MAIL_ENV_FROM_NAME}
|
|
|
|
|
|
# --------------------------------------------
|
|
# REQUIRED: IMAGE LIBRARY
|
|
# This should be gd or imagick
|
|
# --------------------------------------------
|
|
IMAGE_LIB=gd
|
|
|
|
|
|
# --------------------------------------------
|
|
# OPTIONAL: SESSION SETTINGS
|
|
# --------------------------------------------
|
|
SESSION_LIFETIME=12000
|
|
EXPIRE_ON_CLOSE=false
|
|
ENCRYPT=false
|
|
COOKIE_NAME=snipeit_session
|
|
COOKIE_DOMAIN=null
|
|
SECURE_COOKIES=false
|
|
|
|
|
|
# --------------------------------------------
|
|
# OPTIONAL: CACHE SETTINGS
|
|
# --------------------------------------------
|
|
CACHE_DRIVER=file
|
|
SESSION_DRIVER=file
|
|
QUEUE_DRIVER=sync
|