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.
This ports over some logic initially thought about during the BSO project to allow for us to set up any domain to access a site running on the ups.dock network.
A typical use case might be to be able to read a cookie set on a specific domain in our local environments to mock authentication (as was the case for BSO).
To set up a custom domain
Note that this is also documented in this doc.
Assuming you have this branch checked out in your local ups.dock repository:
Add a DNS resolver to your machine for the domain you'd like to access:
Open up the
config/openssl.conf
config file in your local ups.dock repo and add your domain to the list ofalternate_names
:Still in your local ups.dock repo, remove the existing certs and reinstall:
rm certs/ups.dock.* ./bin/install.sh docker-compose up -d
In the docker-compose file of the project you'd like to access from your new domain, update the
environment
config to look for your new virtual host and to read the relevant cert:Restart your docker containers.
Confirm that you can access the site at your new domain.
Questions
alternate_names
section of theopenssl.conf
config so that its not in this project's source control?