Fix .gitignore, add .env.example

This commit is contained in:
3wc 2021-12-06 14:47:59 +02:00
parent 98c4098bf2
commit 7496125072
2 changed files with 30 additions and 2 deletions

4
.gitignore vendored
View File

@ -16,8 +16,8 @@
# Dotenv
/src/.env
/src/.env.*
/src/!.env.example
/src/!.env.sample
!/src/.env.example
!/src/.env.sample
# Composer
/src/vendor

28
src/.env.example Normal file
View File

@ -0,0 +1,28 @@
DB_NAME='wordpress'
DB_USER='wordpress'
DB_PASSWORD='wordpress'
# Optionally, you can use a data source name (DSN)
# When using a DSN, you can remove the DB_NAME, DB_USER, DB_PASSWORD, and DB_HOST variables
# DATABASE_URL='mysql://database_user:database_password@database_host:database_port/database_name'
# Optional database variables
DB_HOST='db'
# DB_PREFIX='wp_'
WP_ENV='development'
WP_HOME='http://localhost'
WP_SITEURL="${WP_HOME}/wp"
# Specify optional debug.log path
# WP_DEBUG_LOG='/path/to/debug.log'
# Generate your keys here: https://roots.io/salts.html
AUTH_KEY='generateme'
SECURE_AUTH_KEY='generateme'
LOGGED_IN_KEY='generateme'
NONCE_KEY='generateme'
AUTH_SALT='generateme'
SECURE_AUTH_SALT='generateme'
LOGGED_IN_SALT='generateme'
NONCE_SALT='generateme'