1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-09 07:25:19 +02:00

Merge branch 'main' into dependabot/npm_and_yarn/npm_and_yarn-security-group-ef11581c83

This commit is contained in:
Sascha Ronnie Daoudia 2024-01-18 19:44:29 +01:00 committed by GitHub
commit 8298c60572
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 23 additions and 1 deletions

View file

@ -14,6 +14,7 @@ NX_NEXTAUTH_URL=http://localhost:4200
# We use ngrok to expose a local development environment to the internet # We use ngrok to expose a local development environment to the internet
# You can sign up for a free account and get an API key at https://ngrok.com # You can sign up for a free account and get an API key at https://ngrok.com
NGROK_AUTH_TOKEN= NGROK_AUTH_TOKEN=
NGROK_DOMAIN=
######################################################################## ########################################################################
# DATABASE # DATABASE

View file

@ -67,6 +67,27 @@ yarn prisma:seed
yarn dev yarn dev
``` ```
## Set Up Ngrok
External data providers require HTTPS/SSL webhook URLs for sending data.
To test this locally/during development, you will need to setup `ngrok`.
1. Visit [ngrok.com](https://ngrok.com/)
2. Create a free account
3. Visit [this page](https://dashboard.ngrok.com/get-started/your-authtoken) to access your auth token
4. Paste it into your `.env` file: `NGROK_AUTH_TOKEN=your_auth_token`
You should claim your free static domain to avoid needing to change the URL each time you start/stop the server.
To do so:
1. Visit the [domains](https://dashboard.ngrok.com/cloud-edge/domains) page
2. Click on Create Domain
3. Copy the domain and paste it into your `.env` file: `NGROK_DOMAIN=your_domain`
That's it! As long as you run the project locally using `docker` with `yarn dev:services:all` you'll be good to go.
## Contributing ## Contributing
To contribute, please see our [contribution guide](https://github.com/maybe-finance/maybe/blob/main/CONTRIBUTING.md). To contribute, please see our [contribution guide](https://github.com/maybe-finance/maybe/blob/main/CONTRIBUTING.md).

View file

@ -31,7 +31,7 @@ services:
ports: ports:
- 4551:4551 - 4551:4551
environment: environment:
- DOMAIN=host.docker.internal - DOMAIN=${NGROK_DOMAIN:-host.docker.internal}
- PORT=3333 - PORT=3333
- AUTH_TOKEN=${NGROK_AUTH_TOKEN} - AUTH_TOKEN=${NGROK_AUTH_TOKEN}
- DEBUG=true - DEBUG=true