mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34: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
64 lines
1.7 KiB
Bash
64 lines
1.7 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_HOST=${MYSQL_PORT_3306_TCP_ADDR}
|
|
DB_PORT=${MYSQL_PORT_3306_TCP_PORT}
|
|
DB_DATABASE=${MYSQL_DATABASE}
|
|
DB_USERNAME=${MYSQL_USER}
|
|
DB_PASSWORD=${MYSQL_PASSWORD}
|
|
DB_PREFIX=null
|
|
DB_DUMP_PATH='/usr/bin'
|
|
|
|
|
|
# --------------------------------------------
|
|
# REQUIRED: OUTGOING MAIL SERVER SETTINGS
|
|
# --------------------------------------------
|
|
MAIL_MAILER=smtp
|
|
MAIL_HOST=${MAIL_PORT_587_TCP_ADDR}
|
|
MAIL_PORT=${MAIL_PORT_587_TCP_PORT}
|
|
MAIL_USERNAME=${MAIL_ENV_USERNAME}
|
|
MAIL_PASSWORD=${MAIL_ENV_PASSWORD}
|
|
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
|