From 8dca777f607a64e89e2c0d2d9360cf5e95b8cf7e Mon Sep 17 00:00:00 2001 From: vickytechkey Date: Tue, 8 Sep 2026 22:39:57 +0530 Subject: [PATCH] Add Facebook OAuth credentials and configure APP_URL in workflow --- .forgejo/workflows/setup-ec2.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/setup-ec2.yml b/.forgejo/workflows/setup-ec2.yml index 1a148693..ec13dbdc 100644 --- a/.forgejo/workflows/setup-ec2.yml +++ b/.forgejo/workflows/setup-ec2.yml @@ -91,12 +91,18 @@ jobs: php artisan key:generate --force fi - # Configure Database connection + # Configure APP_URL and Database connection + sed -i 's|^APP_URL=.*|APP_URL=http://socialmedia.tradhox.com|g' .env sed -i 's/^DB_HOST=.*/DB_HOST=16.113.106.152/g' .env sed -i 's/^DB_DATABASE=.*/DB_DATABASE=trypost/g' .env sed -i 's/^DB_USERNAME=.*/DB_USERNAME=vignesh/g' .env sed -i 's/^DB_PASSWORD=.*/DB_PASSWORD=vtechnosoft@123A/g' .env + # Configure Facebook OAuth + sed -i 's|^FACEBOOK_CLIENT_ID=.*|FACEBOOK_CLIENT_ID=2105308916859392|g' .env + sed -i 's|^FACEBOOK_CLIENT_SECRET=.*|FACEBOOK_CLIENT_SECRET=79b51ed72514663f3629aa33610490f9|g' .env + sed -i 's|^FACEBOOK_CLIENT_REDIRECT=.*|FACEBOOK_CLIENT_REDIRECT=\"http://socialmedia.tradhox.com/accounts/facebook/callback\"|g' .env + # Ensure web server owns the files after composer finishes writing caches sudo chown -R www-data:www-data storage bootstrap/cache sudo chmod -R 777 storage bootstrap/cache