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
107 lines
2.7 KiB
Plaintext
107 lines
2.7 KiB
Plaintext
# --------------------------------------------
|
|
# REQUIRED: BASIC APP SETTINGS
|
|
# --------------------------------------------
|
|
APP_ENV=local
|
|
APP_DEBUG=false
|
|
APP_KEY=base64:hTUIUh9CP6dQx+6EjSlfWTgbaMaaRvlpEwk45vp+xmk=
|
|
APP_URL=http://127.0.0.1:8000
|
|
APP_TIMEZONE='US/Eastern'
|
|
APP_LOCALE=en
|
|
APP_LOCKED=false
|
|
MAX_RESULTS=200
|
|
|
|
# --------------------------------------------
|
|
# REQUIRED: UPLOADED FILE STORAGE SETTINGS
|
|
# --------------------------------------------
|
|
PRIVATE_FILESYSTEM_DISK=local
|
|
PUBLIC_FILESYSTEM_DISK=local_public
|
|
|
|
# --------------------------------------------
|
|
# REQUIRED: DATABASE SETTINGS
|
|
# --------------------------------------------
|
|
DB_CONNECTION=mysql
|
|
DB_HOST=127.0.0.1
|
|
DB_PORT=3306
|
|
DB_DATABASE=null
|
|
DB_USERNAME=null
|
|
DB_PASSWORD=null
|
|
DB_PREFIX=null
|
|
#DB_DUMP_PATH=
|
|
|
|
# --------------------------------------------
|
|
# OPTIONAL: SSL DATABASE SETTINGS
|
|
# --------------------------------------------
|
|
DB_SSL=false
|
|
DB_SSL_KEY_PATH=null
|
|
DB_SSL_CERT_PATH=null
|
|
DB_SSL_CA_PATH=null
|
|
DB_SSL_CIPHER=null
|
|
|
|
# --------------------------------------------
|
|
# REQUIRED: OUTGOING MAIL SERVER SETTINGS
|
|
# --------------------------------------------
|
|
MAIL_MAILER="log"
|
|
|
|
|
|
# --------------------------------------------
|
|
# REQUIRED: IMAGE LIBRARY
|
|
# This should be gd or imagick
|
|
# --------------------------------------------
|
|
IMAGE_LIB=gd
|
|
|
|
|
|
# --------------------------------------------
|
|
# OPTIONAL: SESSION SETTINGS
|
|
# --------------------------------------------
|
|
SESSION_LIFETIME=12000
|
|
EXPIRE_ON_CLOSE=false
|
|
ENCRYPT=true
|
|
COOKIE_NAME=snipeit_v5_local
|
|
SECURE_COOKIES=true
|
|
|
|
# --------------------------------------------
|
|
# OPTIONAL: SECURITY HEADER SETTINGS
|
|
# --------------------------------------------
|
|
REFERRER_POLICY=same-origin
|
|
ENABLE_CSP=true
|
|
CORS_ALLOWED_ORIGINS="*"
|
|
|
|
# --------------------------------------------
|
|
# OPTIONAL: CACHE SETTINGS
|
|
# --------------------------------------------
|
|
CACHE_DRIVER=file
|
|
SESSION_DRIVER=file
|
|
QUEUE_DRIVER=sync
|
|
|
|
# --------------------------------------------
|
|
# OPTIONAL: LOGIN THROTTLING
|
|
# --------------------------------------------
|
|
LOGIN_MAX_ATTEMPTS=50000
|
|
LOGIN_LOCKOUT_DURATION=1000
|
|
RESET_PASSWORD_LINK_EXPIRES=15
|
|
|
|
# --------------------------------------------
|
|
# OPTIONAL: API
|
|
# --------------------------------------------
|
|
API_MAX_REQUESTS_PER_HOUR=200
|
|
|
|
# --------------------------------------------
|
|
# OPTIONAL: SAML SETTINGS
|
|
# --------------------------------------------
|
|
DISABLE_NOSAML_LOCAL_LOGIN=true
|
|
|
|
|
|
# --------------------------------------------
|
|
# OPTIONAL: MISC
|
|
# --------------------------------------------
|
|
LOG_CHANNEL=single
|
|
LOG_LEVEL=debug
|
|
LOG_CHANNEL=stack
|
|
LOG_SLACK_WEBHOOK_URL=null
|
|
APP_TRUSTED_PROXIES=192.168.1.1,10.0.0.1
|
|
ALLOW_IFRAMING=true
|
|
ENABLE_HSTS=false
|
|
WARN_DEBUG=false
|
|
APP_CIPHER=AES-256-CBC
|
|
|