 # which you typically run after static files are built.
 config :yonder, Yonder.Endpoint,
   http: [port: {:system, "PORT"}],
-  url: [host: "example.com", port: 80],
+  url: [scheme: "https", host: "to-texas-and-yonder.herokuapp.com", port: 443],
+  force_ssl: [rewrite_on: [:x_forwarded_proto]],
   cache_static_manifest: "priv/static/manifest.json"
 
 # Do not print debug messages in production


# Finally import the config/prod.secret.exs
# which should be versioned separately.
import_config "prod.secret.exs"

#
#     config :yonder, Yonder.Endpoint,
#       ...
#       url: [host: "example.com", port: 80],
#       https: [port: 443,
#               keyfile: System.get_env("SOME_APP_SSL_KEY_PATH"),
#               certfile: System.get_env("SOME_APP_SSL_CERT_PATH")]
