Skip to content

Enhance Docker environment with SSL support and update Nginx config#9

Merged
roble merged 2 commits into
mainfrom
dev
Jun 25, 2026
Merged

Enhance Docker environment with SSL support and update Nginx config#9
roble merged 2 commits into
mainfrom
dev

Conversation

@roble

@roble roble commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

This pull request adds support for toggling SSL (HTTPS) when setting up the Docker environment, allowing users to choose between SSL-enabled and non-SSL Docker setups. The implementation updates the .env file logic, adds a non-SSL Nginx config, and includes comprehensive test coverage for both SSL and non-SSL scenarios.

Docker SSL/HTTPS Toggle Support

  • Feature: SSL Enable/Disable Prompt

    • The installer now prompts the user to enable or disable SSL (HTTPS) during Docker setup. If SSL is enabled and mkcert is missing, the setup fails with an instructive error. [1] [2] [3]
  • Configuration: Nginx and .env Adjustments

    • When SSL is disabled, a new nginx-no-ssl.conf is used instead of the SSL-enabled config.
    • The .env file logic is updated so that APP_URL is set to https://localhost when SSL is enabled and http://localhost otherwise, while preserving custom URLs. [1] [2]

Testing Improvements

  • Test Coverage for SSL Scenarios
    • Added tests to verify behavior when SSL is enabled or disabled, including mkcert checks, .env URL changes, and fallback logic. [1] [2] [3] [4] [5] [6] [7]

These changes make the Docker environment setup more flexible and robust, supporting both secure (HTTPS) and simpler (HTTP) local development workflows.

@roble roble merged commit a35df2b into main Jun 25, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant