Sha256: 01901bf79c13c076a9560f4d6d5e208f4ce7aa9ac3e683041c185921dba34428

Contents?: true

Size: 1.36 KB

Versions: 38

Compression:

Stored size: 1.36 KB

Contents

# frozen_string_literal: true

return if Rails.application.secrets.elections.blank?

Decidim::BulletinBoard.configure do |config|
  # Exposes a configuration option: the bulletin board server
  config.bulletin_board_server = Rails.application.secrets.elections[:bulletin_board_server]

  # Exposes a configuration option: the bulletin board public key
  config.bulletin_board_public_key = Rails.application.secrets.elections[:bulletin_board_public_key]

  # Exposes a configuration option: the api key generated by the Bulletin Board for the Decidim instance
  config.authority_api_key = Rails.application.secrets.elections[:authority_api_key]

  # Exposes a configuration option: the authority name String
  config.authority_name = Rails.application.secrets.elections[:authority_name]

  # Exposes a configuration option: private key, that got generated by the Decidim instance
  config.authority_private_key = Rails.application.secrets.elections[:authority_private_key]

  # Exposes a configuration option: the scheme name to be used for messages
  config.scheme_name = Rails.application.secrets.elections[:scheme_name]

  # Exposes a configuration option: the quorum
  config.quorum = Rails.application.secrets.elections[:quorum]

  # Exposes a configuration option: number of trustees for an election
  config.number_of_trustees = Rails.application.secrets.elections[:number_of_trustees]
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
decidim-elections-0.28.4 config/initializers/decidim_bulletin_board.rb
decidim-elections-0.27.9 config/initializers/decidim_bulletin_board.rb
decidim-elections-0.28.3 config/initializers/decidim_bulletin_board.rb
decidim-elections-0.27.8 config/initializers/decidim_bulletin_board.rb
decidim-elections-0.28.2 config/initializers/decidim_bulletin_board.rb
decidim-elections-0.27.7 config/initializers/decidim_bulletin_board.rb
decidim-elections-0.28.1 config/initializers/decidim_bulletin_board.rb
decidim-elections-0.27.6 config/initializers/decidim_bulletin_board.rb
decidim-elections-0.26.10 config/initializers/decidim_bulletin_board.rb
decidim-elections-0.26.9 config/initializers/decidim_bulletin_board.rb
decidim-elections-0.28.0 config/initializers/decidim_bulletin_board.rb
decidim-elections-0.27.5 config/initializers/decidim_bulletin_board.rb
decidim-elections-0.28.0.rc5 config/initializers/decidim_bulletin_board.rb
decidim-elections-0.28.0.rc4 config/initializers/decidim_bulletin_board.rb
decidim-elections-0.26.8 config/initializers/decidim_bulletin_board.rb
decidim-elections-0.27.4 config/initializers/decidim_bulletin_board.rb
decidim-elections-0.27.3 config/initializers/decidim_bulletin_board.rb
decidim-elections-0.26.7 config/initializers/decidim_bulletin_board.rb
decidim-elections-0.26.5 config/initializers/decidim_bulletin_board.rb
decidim-elections-0.27.2 config/initializers/decidim_bulletin_board.rb