Skip to content

Fix: launch the project with make - #169

Open
andrea-chirillano wants to merge 1 commit into
developfrom
fix/launch-the-project-with-make
Open

Fix: launch the project with make#169
andrea-chirillano wants to merge 1 commit into
developfrom
fix/launch-the-project-with-make

Conversation

@andrea-chirillano

@andrea-chirillano andrea-chirillano commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Adds a make dev path to run Portal + Login standalone with HTTPS, without depending on the external hot-dev-env repo or Traefik.

Changes

  • Makefile: new certs target (generates local HTTPS certs for *.hotosm.test via mkcert). dev now depends on certs and runs docker compose --profile dev up directly instead of delegating to hot-dev-env. Requires ../login to be present (frontend + backend), fails fast with a clear error otherwise.
  • Caddyfile (new): reverse proxy terminating HTTPS for portal.hotosm.test and login.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 .test origins, session/cookie settings scoped to .hotosm.test, SMTP via mailhog, webauthn/passkey/passcode disabled for local dev).
  • docker-compose.yml: adds caddy, login-frontend, login-backend, hanko, hanko-migrate, hanko-db services (all under the dev profile); points the portal backend/frontend at the new local HTTPS origins instead of localhost.

Requirements to run locally

  • mkcert installed
  • ../login present as a sibling repo (frontend + backend)
  • portal.hotosm.test and login.hotosm.test resolving to 127.0.0.1 in /etc/hosts

How to test

make dev

Then log in at https://portal.hotosm.test and confirm the Hanko login flow round-trips through https://login.hotosm.test.

@andrea-chirillano
andrea-chirillano force-pushed the fix/launch-the-project-with-make branch from 815f428 to 8e3df9e Compare July 27, 2026 17:28
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