Skip to content
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

Self-cert SSL for local https #7

Merged
merged 12 commits into from
Oct 23, 2024
Merged

Self-cert SSL for local https #7

merged 12 commits into from
Oct 23, 2024

Conversation

MattHalloran
Copy link
Owner

@MattHalloran MattHalloran commented Oct 22, 2024

Repo has been updated to include a local development setup. This creates a self-signed SSL certificate, and has Nginx use that instead of a real one.

NOTE 1: When navigating to your URL, make sure to use https://localhost. Do not include the port! If you navigate to http://localhost:3000, it should work as normal (but will use the http/1.1 protocol instead of http/2)

NOTE 2: The current local.conf setup relies on a proxy_pass to the UI container and port. These are hard-coded to ui and 3000, so you may have to change these if needed

- Improved readability of `fullSetup.sh`
- Added logic to create self-cert SSL when running locally. This is needed to support testing with http/2
- Created `docker-compose` file for self-cert testing
- Improved `fullSetup.sh`
- Fixed `local.conf`
- `docker-compose-local.yml` now starts up correctly. `curl -I --http2 -k https://localhost` shows that http/2 is working as expected
- Updated syntax for Docker network
- Improved logic for setting `/etc/sysctl.conf` settings
- Docker is no longer reinstalled when running `fullSetup.sh` multiple times
- Local Nginx config updated to proxy_pass to the correct container. Now the local development UI uses http/2 when the URL is `https://localhost` (note that we don't include the port)!
- Docker testing container is now removed after we verify that the Docker engine is working correctly
- local Nginx config updated to use variables for DNS resolution, which should help ensure that Nginx works even when started before the app's containers
@MattHalloran MattHalloran merged commit d6c04d7 into main Oct 23, 2024
1 of 3 checks passed
@MattHalloran MattHalloran deleted the dev branch October 23, 2024 00:25
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