Modernized the app with app structure from Stage Manager

This commit is contained in:
2023-03-31 11:52:37 -04:00
parent 4568733655
commit 72bb25a6ad
16 changed files with 285 additions and 78 deletions

View File

@ -1,3 +1,7 @@
ldap:
server_url: 'ldap://ldap.example.com'
port: 389
server:
address: '127.0.0.1'
port: 4567

6
config/puma.rb Normal file
View File

@ -0,0 +1,6 @@
# Load application config
require './app/config.rb'
$conf = Config.new(File.join(__dir__, 'config/config.yaml'))
bind_address = "tcp://#{$conf.get('server.address')}:#{$conf.get('server.port')}"
bind bind_address