diff --git a/apps/console/README.md b/apps/console/README.md index 3f989569..e24a905e 100644 --- a/apps/console/README.md +++ b/apps/console/README.md @@ -6,16 +6,26 @@ Everything you need to build a Svelte project, powered by [`create-svelte`](http ### First Step -download latest `traefik.me` certs for _svelte_ dev server. +1. download latest `traefik.me` certs for _svelte_ dev server. -> NOTE: they will expire every 60 days + > NOTE: they will expire every 60 days -```shell -curl traefik.me/fullchain.pem -o infra/base/traefik/certs/traefik.me.crt -curl traefik.me/privkey.pem -o infra/base/traefik/certs/traefik.me.key -# make sure docker has read access to those files: -chmod ugo+r infra/base/traefik/.htpasswd -``` + ```shell + curl traefik.me/fullchain.pem -o infra/base/traefik/certs/traefik.me.crt + curl traefik.me/privkey.pem -o infra/base/traefik/certs/traefik.me.key + # make sure docker has read access to those files: + chmod ugo+r infra/base/traefik/.htpasswd + ``` + +2. Generate TLS `certs` to enable **TLS** transport for **Mailpit** and **Hasura-auth** + + ```shell + cd infra/base/mailpit + ./create-certs.sh mailpit + chmod -R ugo+r certs + # go back to project root + cd ../../.. + ``` ### Backend @@ -105,32 +115,6 @@ crane export ghcr.io/xmlking/spectacular/console:v0.1.3 - | tar -tvf - | grep -v | Dashboard | | | Tailcall | | -#### (Or) Start backend services with nhost cli - -```shell -# start all -nhost up -# check logs for example: auth service -nhost logs auth -f -# shutdown all -nhost down -# (optional) shutdown and reset volume -nhost down --volumes -# (optional) nhost first time when started, will load seeds but you can force with `--apply-seeds` -nhost up --apply-seeds -``` - -| Service | URL | -| --------- | ------------------------------------------------- | -| Postgres | postgres://postgres:postgres@localhost:5432/local | -| Hasura | | -| GraphQL | | -| Auth | | -| Storage | | -| Functions | | -| Dashboard | | -| Mailhog | | - #### Apply seeds Optionally apply all seed files @@ -151,7 +135,7 @@ turbo dev turbo dev --log-order=stream # or run with `prod` profile and # overload envelopment variables from `.env.prod` -NODE_ENV=prod turbo dev +turbo dev:prod --log-order=stream ``` Default demo user's **username:** `sumo@demo.com` **password:** `sumodemo123` diff --git a/apps/console/src/routes/(app)/customers/+page.svelte b/apps/console/src/routes/(app)/customers/+page.svelte index a3029bd2..5e53a55f 100644 --- a/apps/console/src/routes/(app)/customers/+page.svelte +++ b/apps/console/src/routes/(app)/customers/+page.svelte @@ -18,6 +18,11 @@ const rows = handler.getRows(); // $: handler.setRows(customers); + + Datablocks | Customer + + +
diff --git a/apps/console/src/routes/(app)/profile/+page.svelte b/apps/console/src/routes/(app)/profile/+page.svelte new file mode 100644 index 00000000..edbd749c --- /dev/null +++ b/apps/console/src/routes/(app)/profile/+page.svelte @@ -0,0 +1,72 @@ + + + + Datablocks | Profile + + + +
+
+

Profile

+ +
+
+

WebAuthn

+
+ Security keys + + + + + + +
+
+ + + +
+
+
+
+ diff --git a/apps/console/src/routes/(app)/settings/+page.svelte b/apps/console/src/routes/(app)/settings/+page.svelte index d7f6faa9..c27f6615 100644 --- a/apps/console/src/routes/(app)/settings/+page.svelte +++ b/apps/console/src/routes/(app)/settings/+page.svelte @@ -9,5 +9,9 @@ export let data; -

Settings

- +
+
+

Settings

+ +
+
diff --git a/compose.yml b/compose.yml index aaafc0e2..51646ab9 100644 --- a/compose.yml +++ b/compose.yml @@ -136,8 +136,8 @@ services: # mailpit - smtp relay and UI # NOTE: this mailpit use self-signed certs with SAN: mailpit, # located in ./infra/base/mailpit/certs - # you may have to add its CA cert to hasura-auth system trust store - # e.g. ./infra/components/cacerts/ca-certificates.crt:/etc/ssl/certs/ca-certificates.crt + # you have to add its CA cert to `hasura-auth` system's trust store + # e.g. ./infra/base/mailpit/certs/ca.pem:/etc/ssl/certs/ca-certificates.crt ########################################################################### mailpit: image: axllent/mailpit:v1.18.4 @@ -153,8 +153,8 @@ services: MP_SMTP_TLS_CERT: /certs/tls.crt MP_SMTP_TLS_KEY: /certs/tls.key # only enable below 3 lines, if you also want to send email copy via relay - MP_SMTP_RELAY_HOST: smtp.gmail.com - MP_SMTP_RELAY_PORT: 25 + MP_SMTP_RELAY_HOST: smtp-relay.gmail.com + MP_SMTP_RELAY_PORT: 587 MP_SMTP_RELAY_MATCHING: "@chinthagunta\\.com$" # (or) MP_SMTP_RELAY_ALL: true # MP_SMTP_RELAY_ALL: true expose: @@ -194,6 +194,7 @@ services: user: 1000:1000 volumes: - ./nhost/emails:/app/email-templates + - ./infra/base/mailpit/certs/ca.pem:/etc/ssl/certs/ca-certificates.crt environment: AUTH_LOG_LEVEL: info AUTH_ACCESS_CONTROL_ALLOWED_EMAIL_DOMAINS: ${AUTH_ACCESS_CONTROL_ALLOWED_EMAIL_DOMAINS:-} diff --git a/infra/base/mailpit/README.md b/infra/base/mailpit/README.md index 2d7d2686..c2ea7763 100644 --- a/infra/base/mailpit/README.md +++ b/infra/base/mailpit/README.md @@ -1,6 +1,6 @@ # mailpit -SMTP Relay for Development time. +**SMTP Relay** for *Development* time. ## Mailpit TLS Certs