Basic setup
- Details
- Category: Setup
Most basic settings for the site can be found in the configuration file app/config/vereniging.yml. This file can be edited with any editor, changes will be available after deleting all content from the app/cache directory. To start, copy the file app/config/vereniging.yml.template to app/config/vereniging.yml. Currently the file looks as follows:
# In all environments, the following files are loaded if they exist,
# the later taking precedence over the former:
#
# * .env contains default values for the environment variables needed by the app
# * .env.local uncommitted file with local overrides
# * .env.$APP_ENV committed environment-specific defaults
# * .env.$APP_ENV.local uncommitted environment-specific overrides
#
# Real environment variables win over .env files.
#
# DO NOT DEFINE PRODUCTION SECRETS IN THIS FILE NOR IN ANY OTHER COMMITTED FILES.
#
# Run "composer dump-env prod" to compile .env files for production use (requires symfony/flex >=1.2).
# https://symfony.com/doc/current/best_practices/configuration.html#infrastructure-related-configuration
###> symfony/framework-bundle ###
APP_ENV=prod
APP_SECRET=8424e515aaf2bba66258033400d8e27d
#TRUSTED_PROXIES=127.0.0.1,127.0.0.2
#TRUSTED_HOSTS='^localhost|example\.com$'
###< symfony/framework-bundle ###
###> doctrine/doctrine-bundle ###
# Format described at http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
# For an SQLite database, use: "sqlite:///%kernel.project_dir%/var/data.db"
# Configure your db driver and server_version in config/packages/doctrine.yaml
DATABASE_URL=mysql://db_user:db_password@127.0.0.1:3306/db_name
###< doctrine/doctrine-bundle ###
###> symfony/swiftmailer-bundle ###
# For Gmail as a transport, use: "gmail://username:password@localhost"
# For a generic SMTP server, use: "smtp://localhost:25?encryption=&auth_mode="
# Delivery is disabled by default via "null://localhost"
MAILER_URL=null://localhost
###< symfony/swiftmailer-bundle ###
# Administration email address used as sender address whenever emails are sent
VERENIGING_ADMIN_EMAIL_ADDRESS=vereninging@example.com
# Site name used in the title of the pages and in emails. The site name has to be entered for each locale, using json
VERENIGING_SITE_NAME='{"en":"the Vereniging member system","de":"Das Vereniging Mitgliedersystem","nl":"Het Vereniging Ledensysteem"}'
# Here you chose which mailing list type you will be using. The system currently supports majordomo and mailman. The
# parameter here therefor must be either MajorDomo or MailMan
VERENIGING_MAILING_LIST_UPDATER_TYPE=MailMan