Sha256: 15c84e815c081c062d1adfcd484e7809d2a5d92bbae204d042a71b9574ce36d0
Contents?: true
Size: 1.33 KB
Versions: 5
Compression:
Stored size: 1.33 KB
Contents
# frozen_string_literal: true #################################################### ## DO NOT EDIT THIS FILE ## ## Use /etc/puppetlabs/ace/conf.d/ace-server.conf ## ## to configure the sinatra server ## #################################################### require 'ace/transport_app' require 'ace/config' require 'bolt_server/acl' require 'bolt/logger' Bolt::Logger.initialize_logging config_path = ENV['ACE_CONF'] || '/etc/puppetlabs/ace-server/conf.d/ace-server.conf' config = ACE::Config.new config.load_file_config(config_path) config.load_env_config config.make_compatible config.validate Logging.logger[:root].add_appenders Logging.appenders.stderr( 'console', layout: Bolt::Logger.default_layout, level: config['loglevel'] ) if config['logfile'] stdout_redirect config['logfile'], config['logfile'], true end bind_addr = +"ssl://#{config['host']}:#{config['port']}?" bind_addr << "cert=#{config['ssl-cert']}" bind_addr << "&key=#{config['ssl-key']}" bind_addr << "&ca=#{config['ssl-ca-cert']}" bind_addr << "&verify_mode=force_peer" bind_addr << "&ssl_cipher_filter=#{config['ssl-cipher-suites'].join(':')}" bind bind_addr threads 0, config['concurrency'] impl = ACE::TransportApp.new(config) unless config['whitelist'].nil? impl = BoltServer::ACL.new(impl, config['whitelist']) end app impl
Version data entries
5 entries across 5 versions & 1 rubygems