Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
used mkcert to generate local SSL certificates inside the nginx/certs directory, and then path binded that directory to /etc/nginx/certs directory inside the container, which I added in the nginx's default.dev.conf
Solving Issue #748
Description 📣
This pull request adds support for local SSL certificates in the development environment. The changes include:
nginx/default.dev.conf
file to use locally generated SSL certificates.localhost+2.pem
andlocalhost+2-key.pem
) to thenginx/certs/
directory.These changes will allow developers to run the application locally with HTTPS support, improving the local development experience and making it more closely match the production environment.
Type ✨
Tests 🛠️
To test these changes:
Install mkcert if you haven't already (installation instructions vary by OS).
Generate local certificates using mkcert:
mkcert -install cd nginx/certs/ mkcert localhost 127.0.0.1 ::1
Verify that the
nginx/default.dev.conf
file has been updated with the correct certificate paths:Run the application locally using Docker Compose with the development configuration:
Access the application via HTTPS (https://localhost) and confirm that there are no certificate warnings in the browser.
Verify that the application functions correctly over HTTPS.