diff --git a/.env.example b/.env.example index 220a21c..df5a7d3 100644 --- a/.env.example +++ b/.env.example @@ -4,10 +4,20 @@ POSTGRES_USER=cactoide POSTGRES_PASSWORD=cactoide_password POSTGRES_PORT=5432 -# Application configuration DATABASE_URL="postgres://cactoide:cactoide_password@localhost:5432/cactoide_database" + +# Application configuration APP_VERSION=latest PORT=5173 HOSTNAME=0.0.0.0 +# Logger configuration +LOG_PRETTY=true +LOG_LEVEL=trace + +# If you don't want to use the default home page you can turn off +# in this case the /discovery page remain the home of your site PUBLIC_LANDING_INFO=true + +# Federation config +FEDERATION_INSTANCE=true diff --git a/.github/workflows/build-and-push.yml b/.github/workflows/build-and-push.yml index 4eaa13a..cb0a7ef 100644 --- a/.github/workflows/build-and-push.yml +++ b/.github/workflows/build-and-push.yml @@ -61,6 +61,7 @@ jobs: context: . file: ./Dockerfile build-args: | + FEDERATION_INSTANCE=${{ vars.FEDERATION_INSTANCE }} PUBLIC_LANDING_INFO=${{ vars.PUBLIC_LANDING_INFO }} LOG_PRETTY=${{ vars.LOG_PRETTY }} LOG_LEVEL=${{ vars.LOG_LEVEL }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index def2b99..7637a95 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,6 +29,7 @@ jobs: - name: Build application run: npm run build env: + FEDERATION_INSTANCE: ${{ vars.FEDERATION_INSTANCE }} PUBLIC_LANDING_INFO: ${{ vars.PUBLIC_LANDING_INFO }} LOG_PRETTY: ${{ vars.LOG_PRETTY }} LOG_LEVEL: ${{ vars.LOG_LEVEL }} diff --git a/Dockerfile b/Dockerfile index f65bc00..bd72eac 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,9 @@ RUN npm ci ARG PUBLIC_LANDING_INFO ENV PUBLIC_LANDING_INFO=$PUBLIC_LANDING_INFO +ARG FEDERATION_INSTANCE +ENV FEDERATION_INSTANCE=$FEDERATION_INSTANCE + ARG LOG_PRETTY ENV LOG_PRETTY=$LOG_PRETTY @@ -29,7 +32,7 @@ ENV PORT 3000 ENV HOSTNAME "0.0.0.0" HEALTHCHECK --interval=30s --timeout=10s --start-period=10s --retries=3 \ - CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:3000/healthz || exit 1 + CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:3000/api/healthz || exit 1 EXPOSE 3000 CMD [ "node", "build" ] diff --git a/README.md b/README.md index 5f79a7a..a36d6d5 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Events that thrive anywhere. Like the cactus, great events bloom under any condition when managed with care. Cactoide(ae) helps you streamline RSVPs, simplify coordination, and keep every detail efficientβso your gatherings are resilient, vibrant, and unforgettable.
-
+
+
+