feat(x): configure X (Twitter) OAuth credentials in setup workflow
All checks were successful
Setup EC2 Tools / setup-server (push) Successful in 1m49s
All checks were successful
Setup EC2 Tools / setup-server (push) Successful in 1m49s
This commit is contained in:
parent
ea670556c0
commit
fe86b0d121
1 changed files with 8 additions and 0 deletions
|
|
@ -131,6 +131,14 @@ jobs:
|
|||
sed -i 's|^LINKEDIN_CLIENT_SECRET=.*|LINKEDIN_CLIENT_SECRET=WPL_AP1.JawejgioRR6eXYs5.z8r9gQ==|g' .env
|
||||
sed -i 's|^LINKEDIN_CLIENT_REDIRECT=.*|LINKEDIN_CLIENT_REDIRECT=\"https://socialmedia.tradhox.com/accounts/linkedin/callback\"|g' .env
|
||||
sed -i 's|^LINKEDIN_PAGE_ENABLED=.*|LINKEDIN_PAGE_ENABLED=false|g' .env
|
||||
|
||||
# Configure X (Twitter) OAuth
|
||||
grep -q "^X_CLIENT_ID=" .env || echo "X_CLIENT_ID=" >> .env
|
||||
grep -q "^X_CLIENT_SECRET=" .env || echo "X_CLIENT_SECRET=" >> .env
|
||||
grep -q "^X_CLIENT_REDIRECT=" .env || echo "X_CLIENT_REDIRECT=" >> .env
|
||||
sed -i 's|^X_CLIENT_ID=.*|X_CLIENT_ID=TFNfaHJIMEgxMWRSSkRBdUNMTFo6MTpjaQ|g' .env
|
||||
sed -i 's|^X_CLIENT_SECRET=.*|X_CLIENT_SECRET=DsDy7DzkEnzaniFugc81iKULyNC8n6lE_t2bmvg8BrQbc1U7YU|g' .env
|
||||
sed -i 's|^X_CLIENT_REDIRECT=.*|X_CLIENT_REDIRECT=\"https://socialmedia.tradhox.com/accounts/x/callback\"|g' .env
|
||||
|
||||
# Configure Mail SMTP (Hostinger)
|
||||
sed -i 's|^MAIL_MAILER=.*|MAIL_MAILER=smtp|g' .env
|
||||
|
|
|
|||
Loading…
Reference in a new issue