Sha256: 6d7b9eb4b6ef97231e7f1b838e4945bf2040a76a368523a229bcc26a43c8a99d

Contents?: true

Size: 1.52 KB

Versions: 5

Compression:

Stored size: 1.52 KB

Contents

DiscoApp::Engine.routes.default_url_options[:host] = ENV['DEFAULT_HOST']

DiscoApp.configure do |config|
  # Required configuration.
  config.app_name = ENV['SHOPIFY_APP_NAME']

  # Set a list of webhook topics to listen for.
  # See https://help.shopify.com/api/reference/webhook.
  config.webhook_topics = []

  # By default, webhooks request all fields to be provided in the payload.
  # You can override this behaviour by providing an entry in this hash with the
  # key set to a webhook topic and the value set to an array of fields.
  # config.webhook_fields = {}

  # Set the below if using an application proxy.
  config.app_proxy_prefix = ENV['SHOPIFY_APP_PROXY_PREFIX']

  # Set the below if providing a carrier service endpoint.
  # Note that if using a URL helper to set the endpoint, we use a lambda
  # function to ensure that the URL helper is only evaluated when we need it.
  # config.carrier_service_callback_url = -> { Rails.application.routes.url_helpers.carrier_service_callback_url }

  # Set the below to create real Shopify charges.
  config.real_charges = ENV['SHOPIFY_REAL_CHARGES'] === 'true'

  # Optional configuration. These flags are only respected in the development
  # environment and will have no effect in production.
  config.skip_proxy_verification = ENV['SKIP_PROXY_VERIFICATION'] == 'true'
  config.skip_webhook_verification = ENV['SKIP_WEBHOOK_VERIFICATION'] == 'true'
  config.skip_carrier_request_verification = ENV['SKIP_CARRIER_REQUEST_VERIFICATION'] == 'true'
  config.skip_oauth = ENV['SKIP_OAUTH'] == 'true'
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
disco_app-0.18.2 lib/generators/disco_app/install/templates/initializers/disco_app.rb
disco_app-0.18.3 lib/generators/disco_app/install/templates/initializers/disco_app.rb
disco_app-0.18.6 lib/generators/disco_app/install/templates/initializers/disco_app.rb
disco_app-0.18.4 lib/generators/disco_app/install/templates/initializers/disco_app.rb
disco_app-0.18.1 lib/generators/disco_app/install/templates/initializers/disco_app.rb