Hash :
25b4bda1
Author :
Date :
2016-05-14T12:46:53
configuration and readme changes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
use Mix.Config
config :ex_doc, :markdown_processor, ExDoc.Markdown.Hoedown
config :logger,
backends: [:console],
compile_time_purge_level: :debug
config :openstex,
httpoison: [
connect_timeout: 30000, # 30 seconds
receive_timeout: (60000 * 30) # 30 minutes
]
config :ex_ovh,
ovh: [
application_key: System.get_env("EX_OVH_APPLICATION_KEY"),
application_secret: System.get_env("EX_OVH_APPLICATION_SECRET"),
consumer_key: System.get_env("EX_OVH_CONSUMER_KEY"),
endpoint: System.get_env("EX_OVH_ENDPOINT"),
api_version: System.get_env("EX_OVH_API_VERSION") || "1.0"
],
swift: [
webstorage: [
cdn_name: System.get_env("EX_OVH_WEBSTORAGE_CDN_NAME"),
type: :webstorage
],
cloudstorage: [
tenant_id: System.get_env("EX_OVH_CLOUDSTORAGE_TENANT_ID"), # mandatory, corresponds to a project id
user_id: System.get_env("EX_OVH_CLOUDSTORAGE_USER_ID"), # optional, if absent a user will be created using the ovh api.
keystone_endpoint: "https://auth.cloud.ovh.net/v2.0", # default endpoint for keystone (identity) auth
region: :nil, # defaults to "SBG1" if set to :nil
type: :cloudstorage
]
]
#config :my_app, MyApp.OvhClient,
# ... then as above
# SAMPLE CONFIGURATIONS ON A PER APP AND PER API BASIS FOR OPENSTEX
#config :my_app, MyApp.OvhClient.Ovh, <-- For OVH part of the api
# httpoison: ... as above
#config :my_app, MyApp.OvhClient.Swift.Webstorage, <-- For Openstack Webstorage part of the api
# httpoison: ... as above
#config :my_app, MyApp.OvhClient.Swift.Cloudstorage, <-- <-- For Openstack Cloudstorage part of the api
# httpoison: ... as above