Skip to content

Commit

Permalink
Update OHANA_API_ENDPOINT to point to HTTPS.
Browse files Browse the repository at this point in the history
Now that the API has been updated to use HTTPS by default, the endpoint
here needs to be updated.

Make sure to update your local application.yml and update your env var
on Heroku.
  • Loading branch information
monfresh committed Sep 4, 2014
1 parent f1262b2 commit 981689f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/application.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@

# Each entry sets a local environment variable and overrides ENV variables
# in the Unix shell. For example, setting:
# OHANA_API_ENDPOINT: http://ohana-api-demo.herokuapp.com/api
# makes "http://ohana-api-demo.herokuapp.com/api" available as
# OHANA_API_ENDPOINT: https://ohana-api-demo.herokuapp.com/api
# makes "https://ohana-api-demo.herokuapp.com/api" available as
# ENV["OHANA_API_ENDPOINT"] in the app. See config/initializers/ohanapi.rb
# for a usage example.

# Set this to the URL for your instance of the Ohana API:
# https://github.com/codeforamerica/ohana-api
# This environment variable is required.
OHANA_API_ENDPOINT: http://ohana-api-demo.herokuapp.com/api
OHANA_API_ENDPOINT: https://ohana-api-demo.herokuapp.com/api

# This setting is used for the Google translation feature.
# The "DOMAIN_NAME" environment variable should be set to your app's
Expand Down

2 comments on commit 981689f

@monfresh
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@declan Heads up that you can now enable HTTPS for the API, and if you do, make sure to update your OHANA_API_ENDPOINT here and on Heroku to point to the https version of the API. More details here:
https://github.com/codeforamerica/ohana-api/wiki/How-to-deploy-the-Ohana-API-to-your-Heroku-account#using-a-custom-domain-name-and-ssl-configuration

@declan
Copy link
Contributor

@declan declan commented on 981689f Sep 4, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the heads up @moncef.

Please sign in to comment.