https://github.com/antoonline/docker-wordpress-custom
This wp-config.php configures WordPress using environment variables.
https://github.com/antoonline/docker-wordpress-custom
config environment-variables wordpress
Last synced: 3 months ago
JSON representation
This wp-config.php configures WordPress using environment variables.
- Host: GitHub
- URL: https://github.com/antoonline/docker-wordpress-custom
- Owner: AntoOnline
- Created: 2023-05-20T22:42:50.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-05-21T02:23:32.000Z (about 3 years ago)
- Last Synced: 2025-06-02T06:27:51.271Z (about 1 year ago)
- Topics: config, environment-variables, wordpress
- Language: PHP
- Homepage: https://anto.online
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Custom Wordpress wp-config.php
This wp-config.php allows you to user environment variables to configure your WordPress installation.
## Features
- Custom `wp-config.php` file to read configuration from environment variables
## Environment Variables
```
USE_WP_REDIS=0
WP_REDIS_PORT="6379"
WP_REDIS_HOST=""
WP_REDIS_PASSWORD=""
USE_AWS_CDN=0
AWS_CDN_Isactive=""
WP_HOME="https://example.com"
WP_SITEURL="https://example.com"
DB_NAME="dbname"
DB_USER="dbuser"
DB_PASSWORD="dbpassword"
DB_HOST="dbhost"
AUTH_KEY=" V ^>Nv*example"
SECURE_AUTH_KEY=" V ^>Nv*example"
LOGGED_IN_KEY=" V ^>Nv*example"
NONCE_KEY=" V ^>Nv*example"
AUTH_SALT=" V ^>Nv*example"
SECURE_AUTH_SALT="t V ^>Nv*example"
LOGGED_IN_SALT=" V ^>Nv*example"
NONCE_SALT=" V ^>Nv*example"
TABLE_PREFIX="wp_"
WP_DEBUG=0
WP_ENVIRONMENT_TYPE="production"
WP_ALLOW_REPAIR=1
FORCE_SSL_ADMIN=1
DISALLOW_FILE_EDIT=0
EMPTY_TRASH_DAYS=30
WP_CACHE=1
WP_MAX_MEMORY_LIMIT="2048M"
WP_MEMORY_LIMIT="1024M"
USE_FORWARD_PROXY=1
```
## License
This Docker image is licensed under the [MIT License](LICENSE). Feel free to use it for your personal or commercial projects.
## Want to connect?
Feel free to contact me on [Twitter](https://twitter.com/OnlineAnto), [DEV Community](https://dev.to/antoonline/) or [LinkedIn](https://www.linkedin.com/in/anto-online) if you have any questions or suggestions.
Or just visit my [website](https://anto.online) to see what I do.