diff --git a/README.md b/README.md index 81cb97f57..a4c800111 100644 --- a/README.md +++ b/README.md @@ -86,6 +86,7 @@ Accent provides a default value for every required environment variable. This me | `SENTRY_DSN` | _none_ | The *secret* Sentry DSN used to collect API runtime errors | | `WEBAPP_SENTRY_DSN` | _none_ | The *public* Sentry DSN used to collect Webapp runtime errors | | `GOOGLE_API_CLIENT_ID` | _none_ | When deploying in a `prod` environment, the Google login is the only way to authenticate user. In `dev` environment, a fake login provider is used so you don’t have to setup a Google app. | +| `RESTRICTED_DOMAIN` | _none_ | If specified, only authenticated users from this domain name will be able to create new projects. | ## Tests diff --git a/app.json b/app.json index 7625d78b3..9822a3c2d 100644 --- a/app.json +++ b/app.json @@ -14,6 +14,32 @@ "scripts": { "postdeploy": "mix do ecto.migrate, run ./priv/repo/seeds.exs" }, + "env": { + "API_HOST": { + "description": "The URL to which the Web application will connect for API requests", + "value": "https://this-heroku-app-name.herokuapp.com" + }, + "API_WS_HOST": { + "description": "The URL to which the Web application will connect for Websocket sessions", + "value": "wss://this-heroku-app-name.herokuapp.com" + }, + "FORCE_SSL": { + "description": "Whether to force HTTPS requests to the Web application and the API", + "value": "true" + }, + "GOOGLE_API_CLIENT_ID": { + "description": "The Google API OAuth client ID that will be used to authenticate users. You can create a “Web application”-type credential at https://console.developers.google.com/apis/credentials", + "value": "google-api-client-id.apps.googleusercontent.com" + }, + "MIX_ENV": { + "description": "The environment in which Elixir code will run", + "value": "prod" + }, + "RESTRICTED_DOMAIN": { + "description": "If specified, only authenticated users from this domain name will be able to create projects", + "required": false + } + }, "addons": [ { "plan": "heroku-postgresql",