Skip to content

Commit

Permalink
Update secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
fblupi committed Sep 15, 2023
1 parent 2406bf7 commit 6dbaab3
Showing 1 changed file with 20 additions and 13 deletions.
33 changes: 20 additions & 13 deletions config/initializers/decidim.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,12 @@
# Map and Geocoder configuration
#
# == HERE Maps ==
config.maps = {
provider: :here,
api_key: Rails.application.secrets.maps[:api_key],
static: { url: "https://image.maps.ls.hereapi.com/mia/1.6/mapview" }
}
# config.maps = {
# provider: :here,
# api_key: Rails.application.secrets.maps[:api_key],
# static: { url: "https://image.maps.ls.hereapi.com/mia/1.6/mapview" }
# }
#
# == OpenStreetMap (OSM) services ==
# To use the OSM map service providers, you will need a service provider for
# the following map servers or host all of them yourself:
Expand Down Expand Up @@ -94,12 +95,20 @@
# settings. The maps configuration will manage which geocoding service to use,
# so that does not need any additional configuration here. Use this only for
# the global geocoder preferences.
# config.geocoder = {
# # geocoding service request timeout, in seconds (default 3):
# timeout: 5,
# # set default units to kilometers:
# units: :km,
# # caching (see https://github.com/alexreisner/geocoder#caching for details):
# cache: Redis.new,
# cache_prefix: "..."
# }
config.geocoder = {
# geocoding service request timeout, in seconds (default 3):
timeout: 5,
# set default units to kilometers:
units: :km
}

if Rails.application.secrets.maps.present? && Rails.application.secrets.maps[:static_provider].present?
static_provider = Rails.application.secrets.maps[:static_provider]
dynamic_provider = Rails.application.secrets.maps[:dynamic_provider]
Expand Down Expand Up @@ -216,7 +225,7 @@
# end
# end
#
config.sms_gateway_service = 'Decidim::Verifications::Sms::ExampleGateway'
# config.sms_gateway_service = 'Decidim::Verifications::Sms::ExampleGateway'

# Timestamp service configuration
#
Expand All @@ -241,7 +250,7 @@
# end
#
#
config.timestamp_service = "Decidim::Initiatives::DummyTimestamp"
# config.timestamp_service = "Decidim::Initiatives::DummyTimestamp"

# PDF signature service configuration
#
Expand All @@ -264,7 +273,7 @@
# end
# end
#
config.pdf_signature_service = "Decidim::Initiatives::PdfSignatureExample"
# config.pdf_signature_service = "Decidim::Initiatives::PdfSignatureExample"

# Etherpad configuration
#
Expand Down Expand Up @@ -325,7 +334,7 @@
# end
# end
#
config.machine_translation_service = 'Decidim::Dev::DummyTranslator'
# config.machine_translation_service = 'Decidim::Dev::DummyTranslator'

# Defines the name of the cookie used to check if the user allows Decidim to
# set cookies.
Expand Down Expand Up @@ -381,8 +390,6 @@
config.maximum_conversation_message_length = Rails.application.secrets.decidim[:maximum_conversation_message_length].to_i
config.password_blacklist = Rails.application.secrets.decidim[:password_blacklist] if Rails.application.secrets.decidim[:password_blacklist].present?
config.allow_open_redirects = Rails.application.secrets.decidim[:allow_open_redirects] if Rails.application.secrets.decidim[:allow_open_redirects].present?

config.authorization_handlers = []
end

if Decidim.module_installed? :api
Expand Down

0 comments on commit 6dbaab3

Please sign in to comment.