Skip to content

Commit

Permalink
Add missing environment variables in app.json file
Browse files Browse the repository at this point in the history
  • Loading branch information
remi committed Apr 13, 2018
1 parent 465bcec commit 6a87aca
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -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

Expand Down
26 changes: 26 additions & 0 deletions app.json
Expand Up @@ -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://heroku-app-name.herokuapp.com"
},
"API_WS_HOST": {
"description": "The URL to which the Web application will connect for Websocket sessions.",
"value": "wss://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",
Expand Down

0 comments on commit 6a87aca

Please sign in to comment.