From 13d82b5b3132ea0093155c679ec63d487eca725f Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Fri, 30 Jan 2026 15:12:00 +0100 Subject: [PATCH] Update Pixelfed install script for HTTPS and key generation Added FORCE_HTTPS_URLS and HTTPS environment variables to .env generation, set APP_KEY to empty, and updated artisan key:generate to use --force. These changes improve initial configuration and support for non-HTTPS setups. --- install/pixelfed-install.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/install/pixelfed-install.sh b/install/pixelfed-install.sh index 58f480a50..682392c82 100644 --- a/install/pixelfed-install.sh +++ b/install/pixelfed-install.sh @@ -61,12 +61,14 @@ cd /opt/pixelfed cat </opt/pixelfed/.env APP_NAME="Pixelfed" APP_ENV="production" +APP_KEY= APP_DEBUG="false" APP_URL=http://${LOCAL_IP} APP_DOMAIN=${LOCAL_IP} ADMIN_DOMAIN=${LOCAL_IP} SESSION_DOMAIN=${LOCAL_IP} TRUST_PROXIES="*" +FORCE_HTTPS_URLS="false" OPEN_REGISTRATION="false" ENFORCE_EMAIL_VERIFICATION="false" @@ -121,6 +123,7 @@ MAIL_FROM_NAME="Pixelfed" PF_ENABLE_CLOUD="false" FILESYSTEM_CLOUD="s3" SESSION_SECURE_COOKIE="false" +HTTPS="false" EOF chown -R pixelfed:pixelfed /opt/pixelfed @@ -130,8 +133,8 @@ chmod -R 775 /opt/pixelfed/storage /opt/pixelfed/bootstrap/cache export COMPOSER_ALLOW_SUPERUSER=1 $STD composer install --no-dev --no-ansi --no-interaction --optimize-autoloader -sudo -u pixelfed php artisan key:generate -sudo -u pixelfed php artisan storage:link +$STD sudo -u pixelfed php artisan key:generate --force +$STD sudo -u pixelfed php artisan storage:link $STD sudo -u pixelfed php artisan migrate --force $STD sudo -u pixelfed php artisan import:cities $STD sudo -u pixelfed php artisan passport:keys