Handle onion address for pixelfed
This commit is contained in:
parent
6262163073
commit
ae55c84b0b
|
@ -397,7 +397,12 @@ function install_pixelfed {
|
|||
cd "/var/www/$PIXELFED_DOMAIN_NAME/htdocs" || exit 36587357
|
||||
|
||||
cp "/var/www/$PIXELFED_DOMAIN_NAME/htdocs/.env.example" "/var/www/$PIXELFED_DOMAIN_NAME/htdocs/.env"
|
||||
|
||||
if [[ "$ONION_ONLY" != 'no' ]]; then
|
||||
sed -i "s|APP_URL=http://.*|APP_URL=https://\$PIXELFED_DOMAIN_NAME|g" "/var/www/$PIXELFED_DOMAIN_NAME/htdocs/.env"
|
||||
else
|
||||
sed -i "s|APP_URL=http://.*|APP_URL=http://\$PIXELFED_ONION_HOSTNAME|g" "/var/www/$PIXELFED_DOMAIN_NAME/htdocs/.env"
|
||||
fi
|
||||
sed -i "s|DB_DATABASE=.*|DB_DATABASE=pixelfed|g" "/var/www/$PIXELFED_DOMAIN_NAME/htdocs/.env"
|
||||
sed -i "s|DB_USERNAME=.*|DB_USERNAME=root|g" "/var/www/$PIXELFED_DOMAIN_NAME/htdocs/.env"
|
||||
sed -i "s|DB_PASSWORD=.*|DB_PASSWORD=$MARIADB_PASSWORD|g" "/var/www/$PIXELFED_DOMAIN_NAME/htdocs/.env"
|
||||
|
|
Loading…
Reference in New Issue