6
0
Fork 0

Il socket PHP usava le variabili sbagliate.

This commit is contained in:
Andrea Dell'Amico 2021-03-19 18:24:56 +01:00
parent 8fb754bf59
commit e5bd6e1937
2 changed files with 6 additions and 6 deletions

View File

@ -76,12 +76,10 @@ php_app_nginx_virthost:
proxy_standard_setup: True
locations:
- location: ~ \.php$
php_target: '{{ phpfpm_listen_host }}:{{ phpfpm_listen_port }}'
php_target: '{{ phpfpm_default_listen }}'
phpfpm_default_user: '{{ php_app_user }}'
phpfpm_default_pool_name: php_app
http_port: 80
https_port: 443
php_version: 7.4

8
run.sh
View File

@ -70,12 +70,14 @@ fi
if [ -d ./host_vars ] ; then
VAULT_HOST_FILES=$( find ./host_vars -name \*vault\* )
fi
#
# Insert your vault password file here if you don't want to be asked for it
VAULT_PASS_FILE=
if [ -n "$VAULT_GROUP_FILES" ] || [ -n "$VAULT_HOST_FILES" ] ; then
# Vault requires a password.
# To encrypt a password for a user: python -c "from passlib.hash import sha512_crypt; print sha512_crypt.encrypt('<password>')"
if [ -f ~/.redbox_ansible_vault_pass.txt ] ; then
PLAY_OPTS="$PLAY_OPTS --vault-password-file=~/.redbox_ansible_vault_pass.txt"
if [ -n "$VAULT_PASS_FILE" ] && [ -f "$VAULT_PASS_FILE" ] ; then
PLAY_OPTS="$PLAY_OPTS --vault-password-file=~/$VAULT_PASS_FILE"
else
echo "There are password protected encrypted files, we will ask for password before proceeding"
PLAY_OPTS="$PLAY_OPTS --ask-vault-pass"