Skip to content

Fix APP_URL not updating to HTTPS after SSL certification #142

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 18, 2025

Conversation

mehrancodes
Copy link
Owner

Problem

When SSL certification is enabled for a site, Forge doesn't automatically update the APP_URL environment variable from http:// to https:// format.

Solution

  • Modified the pipeline to conditionally add APP_URL with proper HTTPS protocol when SSL is enabled
  • Created a dedicated Action class to handle environment variable updates (App\Actions\Forge\UpdateForgeEnvironmentVariables)
  • Refactored for better separation of concerns and testability

This ensures that Laravel applications correctly detect HTTPS after SSL certification is enabled.

@mehrancodes mehrancodes self-assigned this Jun 18, 2025
@mehrancodes mehrancodes added the bug Something isn't working label Jun 18, 2025
@mehrancodes mehrancodes merged commit 3be4951 into main Jun 18, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant