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.
Description
Adds support for
https
to leverage service workers and push API locally.Notes:
https://onlook.internal
tolocalhost:3000
./etc/hosts
to be edited to add127.0.0.1 onlook.internal
localhost:3000
can still be usedonlook.internal
instead oflocalhost
localhost
is not valid).internal
is specifically reserved for internal usageUsing docker to host
nginx
might feel overkill, but the container image is relatively small because it uses alpine and it simplifies the setup of the environment.Related Issues
Type of Change
Testing
bun backend:start
– will ask you for password to add certificate to key chainbun dev
sudo vim /etc/hosts
and add127.0.0.1 onlook.internal
open https://onlook.internal
Screenshots (if applicable)
Additional Notes
Important
Adds local HTTPS support using Nginx in Docker, with SSL certificate generation and configuration for
onlook.internal
.server.conf
to reverse proxyhttps://onlook.internal
tolocalhost:3000
.docker-compose.yaml
to run Nginx in a Docker container.package.json
to run Nginx setup withbackend:start
script.genkeys.sh
to generate SSL certificates and add them to the Mac keychain.openssl.cnf
for certificate configuration..gitignore
for SSL files.config.toml
to includehttps://onlook.internal
inadditional_redirect_urls
.This description was created by
for 65486f3. You can customize this summary. It will automatically update as commits are pushed.