Fix: launch the project with make - #169
Open
andrea-chirillano wants to merge 1 commit into
Open
Conversation
andrea-chirillano
force-pushed
the
fix/launch-the-project-with-make
branch
from
July 27, 2026 17:28
815f428 to
8e3df9e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Adds a
make devpath to run Portal + Login standalone with HTTPS, without depending on the externalhot-dev-envrepo or Traefik.Changes
Makefile: newcertstarget (generates local HTTPS certs for*.hotosm.testviamkcert).devnow depends oncertsand runsdocker compose --profile dev updirectly instead of delegating tohot-dev-env. Requires../loginto be present (frontend + backend), fails fast with a clear error otherwise.Caddyfile(new): reverse proxy terminating HTTPS forportal.hotosm.testandlogin.hotosm.test, routing to the respective frontend/backend containers and to Hanko's public API/webauthn/passcode endpoints.config/hanko-config.yaml(new): dev configuration for the Hanko service (CORS for the two.testorigins, session/cookie settings scoped to.hotosm.test, SMTP viamailhog, webauthn/passkey/passcode disabled for local dev).docker-compose.yml: addscaddy,login-frontend,login-backend,hanko,hanko-migrate,hanko-dbservices (all under thedevprofile); points the portal backend/frontend at the new local HTTPS origins instead oflocalhost.Requirements to run locally
../loginpresent as a sibling repo (frontend + backend)portal.hotosm.testandlogin.hotosm.testresolving to127.0.0.1in/etc/hostsHow to test
Then log in at
https://portal.hotosm.testand confirm the Hanko login flow round-trips throughhttps://login.hotosm.test.