diff --git a/README.md b/README.md index 8dce9ce..2814757 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ allow members to verify their humanity using the [Rarimo Proof of Humanity] case ## Configuration -- Set `APP_URL` to the URL of your application in the `.env` file. This URL will be used +- Set `APPLICATION_URL` to the URL of your application in the `.env` file. This URL will be used to redirect users after they verify their humanity. By default, it should be `http://localhost:8000` if you didn't change the port (check [Starting the server](#starting-the-server)) - Set `POH_APP_URL` to the according url of the Rarimo Proof of Humanity application in diff --git a/env-example b/env-example index a0aed9b..2ad9742 100644 --- a/env-example +++ b/env-example @@ -1,4 +1,4 @@ -APP_URL="http://localhost:8000" +APPLICATION_URL="http://localhost:8000" POH_APP_URL="https://robotornot.mainnet-beta.rarimo.com" # https://api-qa.collab.land/config diff --git a/src/config.ts b/src/config.ts index 7b5f30a..d5ccc64 100644 --- a/src/config.ts +++ b/src/config.ts @@ -27,7 +27,7 @@ const loadCfg = (): Config => { collablandEcdsaPublicKey: process.env.COLLABLAND_ECDSA_PUBLIC_KEY, collablandEd25519PublicKeyHex: process.env.COLLABLAND_ED25519_PUBLIC_KEY_HEX, pohAppUrl: process.env.POH_APP_URL, - appUrl: process.env.APP_URL, + appUrl: process.env.APPLICATION_URL, }) return validationSchema.validateSync(config, {