added a env file generator with expansions
This commit is contained in:
58
srcs/.env
58
srcs/.env
@@ -1,48 +1,22 @@
|
||||
|
||||
# NGINX SETUP
|
||||
|
||||
NG_VOLUME_CERTS=/etc/ssl
|
||||
MAX_UPLOAD_SIZE=512
|
||||
|
||||
# MARIADB SETUP
|
||||
|
||||
DB_HOST=mariadb
|
||||
DB_NAME=db_wp_inception
|
||||
DB_PSWD='too bad you have read this now i have to erase your memory'
|
||||
DB_USER=user_wp_inception
|
||||
DB_PSWD="too bad you have read this now i have to erase your memory"
|
||||
|
||||
# WORDPRESS SETUP
|
||||
|
||||
WP_URL=local_lejourduprof.com
|
||||
EXECUTION_TIME=300
|
||||
HOME_PATH=/home/asususus
|
||||
HOST_VOLUME_DB=/home/asususus/data/lejourduprof/db_volume
|
||||
HOST_VOLUME_PLUGINS=/srcs/plugins
|
||||
HOST_VOLUME_WP=/home/asususus/data/lejourduprof/wp_volume
|
||||
MAX_UPLOAD_SIZE=512
|
||||
NG_VOLUME_CERTS=/etc/ssl
|
||||
WP_ADMIN_EMAIL=hulamy@42.fr
|
||||
WP_ADMIN=hulamy
|
||||
WP_ADMIN_PSWD='you shall not password !'
|
||||
WP_PORT=3003
|
||||
WP_TITLE=title
|
||||
WP_URL=local_lejourduprof.com
|
||||
WP_USER_EMAIL=moehu36@42.fr
|
||||
WP_USER=moehu36
|
||||
WP_USER_PSWD='it'\''s a secret for nobody'
|
||||
WP_VOLUME_DIR=/var/www/html
|
||||
WP_VOLUME_PLUGINS=/home/www-data
|
||||
WP_TITLE=title
|
||||
|
||||
WP_ADMIN=hulamy
|
||||
WP_ADMIN_PSWD="you shall not password !"
|
||||
WP_ADMIN_EMAIL=hulamy@42.fr
|
||||
|
||||
WP_USER=moehu36
|
||||
WP_USER_PSWD="it's a secret for nobody"
|
||||
WP_USER_EMAIL=moehu36@42.fr
|
||||
|
||||
# MAP
|
||||
|
||||
EXECUTION_TIME=300
|
||||
|
||||
# env file does not have expension capacity, so we simulate it with makefile :
|
||||
# 1. the lines starting with "#EXPEND_" will be retrieved by the makefile
|
||||
# 2. then it will expend the $HOME_PATH and $PWD_PATH
|
||||
# 3. then it will remove the leading "#EXPEND_" word
|
||||
# 4. then it will erase all the line starting with "HOST_VOLUME_" if they exist
|
||||
# 5. and finally it will add the expended lines after the line "EXPENDED LINES :"
|
||||
# LINES TO EXPEND :
|
||||
#EXPEND_HOST_VOLUME_WP=$HOME_PATH/data/lejourduprof/wp_volume
|
||||
#EXPEND_HOST_VOLUME_DB=$HOME_PATH/data/lejourduprof/db_volume
|
||||
#EXPEND_HOST_VOLUME_PLUGINS=$PWD_PATH/srcs/plugins
|
||||
# EXPENDED LINES :
|
||||
HOST_VOLUME_PLUGINS=/home/asususus/nextcloud_backup/backup_planethoster_server/nextclouddata/hugogogo/files/informatique/wordpress_docker/srcs/plugins
|
||||
HOST_VOLUME_DB=/home/asususus/data/lejourduprof/db_volume
|
||||
HOST_VOLUME_WP=/home/asususus/data/lejourduprof/wp_volume
|
||||
|
||||
|
||||
Reference in New Issue
Block a user