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

Replace traefik with nginx/certbot + curlable bash script #931

Merged
merged 119 commits into from
Nov 10, 2023

Conversation

spwoodcock
Copy link
Member

@spwoodcock spwoodcock commented Oct 24, 2023

Fixes #838

Includes

1. Replaced vars:

URL_SCHEME
API_URL
FRONTEND_MAIN_URL

# Also no longer required (determined from FMTM_DOMAIN)
OSM_LOGIN_REDIRECT_URI

# Replaced with much simpler / clearer:
FMTM_DOMAIN

2. Added an nginx proxy to route all services:

During development we can now access:

  • fmtm.localhost (frontend)
  • api.fmtm.localhost (backend)
  • odk.fmtm.localhost (odk central, although internal to docker containers in the stack this will just be called proxy. From the backend we can give pass ODK_CENTRAL_URL=https://proxy.)
  • s3.fmtm.localhost (the Minio S3 buckets)

In production, these will be mapped to domain names:
fmtm.hotosm.org
api.fmtm.hotosm.org
etc

See #920 for more info

3. Certbot to automatically renew certs for the provided domains (to replace Traefik).

Extra

Also fixes: #928, adding regular database backups.
Also fixes #899, adding a curlable bash script (easier deployment).

@spwoodcock spwoodcock temporarily deployed to test October 24, 2023 13:50 — with GitHub Actions Inactive
@github-actions github-actions bot added backend Related to backend code devops Related to deployment or configuration docs Improvements or additions to documentation frontend Related to frontend code ODK Any requests for optimizing ODK labels Oct 24, 2023
@spwoodcock spwoodcock temporarily deployed to test October 24, 2023 13:51 — with GitHub Actions Inactive
@spwoodcock spwoodcock temporarily deployed to test October 24, 2023 13:55 — with GitHub Actions Inactive
@spwoodcock spwoodcock temporarily deployed to test October 24, 2023 13:56 — with GitHub Actions Inactive
@spwoodcock spwoodcock temporarily deployed to test October 24, 2023 14:18 — with GitHub Actions Inactive
@spwoodcock spwoodcock temporarily deployed to test October 24, 2023 14:18 — with GitHub Actions Inactive
@spwoodcock spwoodcock temporarily deployed to test October 25, 2023 12:33 — with GitHub Actions Inactive
@spwoodcock spwoodcock temporarily deployed to test October 27, 2023 09:01 — with GitHub Actions Inactive
@spwoodcock spwoodcock temporarily deployed to test October 27, 2023 09:14 — with GitHub Actions Inactive
@spwoodcock spwoodcock self-assigned this Oct 31, 2023
@spwoodcock spwoodcock marked this pull request as ready for review November 1, 2023 13:44
@spwoodcock spwoodcock temporarily deployed to test November 1, 2023 13:47 — with GitHub Actions Inactive
@spwoodcock spwoodcock temporarily deployed to test November 1, 2023 13:56 — with GitHub Actions Inactive
@spwoodcock spwoodcock temporarily deployed to test November 1, 2023 14:10 — with GitHub Actions Inactive
@spwoodcock spwoodcock temporarily deployed to test November 1, 2023 14:43 — with GitHub Actions Inactive
@spwoodcock spwoodcock temporarily deployed to test November 1, 2023 15:33 — with GitHub Actions Inactive
@spwoodcock spwoodcock merged commit cdf2dc5 into development Nov 10, 2023
5 of 6 checks passed
@spwoodcock spwoodcock deleted the build/nginx-certbot branch November 10, 2023 05:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Related to backend code devops Related to deployment or configuration docs Improvements or additions to documentation frontend Related to frontend code ODK Any requests for optimizing ODK
Projects
None yet
1 participant