Sha256: 7e2fb53345a1bb1517c485be25aa52ad049e7d7e9be6328a3528a06e4002915a

Contents?: true

Size: 1.53 KB

Versions: 52

Compression:

Stored size: 1.53 KB

Contents

#!/usr/bin/env ruby

def getOption(option)
  File.open('/etc/ejabberd/ssconfig.cfg', 'r') do |f1|  
    while line = f1.gets  
      line = line.gsub(/\n/,'')
      if line.match(/^#/)
        #Comments
      elsif line.match(/^#{option}/)
        return line.gsub(/#{option}/,'')
      end  
    end  
  end
  return "Undefined"
end

puts ""
puts "############### Ejabberd Configuration ###############"
puts "Config file for Social Stream Presence: /etc/ejabberd/ssconfig.cfg"
puts "Xmpp Server domain: #{getOption("server_domain=")}"
puts "Scripts Path: #{getOption("scripts_path=")}"
puts "mod_sspresence Path: #{getOption("source_path=")}"
puts "Web Domain for REST API: #{getOption("web_domain=")}"
puts "##############################"
puts "REST API"
puts "Authentication by password: http://#{getOption("web_domain=")}/users/sign_in"
puts "Authentication by cookie: http://#{getOption("web_domain=")}/api/me"
puts "onRegisterConnection: http://#{getOption("web_domain=")}/xmpp/setConnection"
puts "onRemoveConnection: http://#{getOption("web_domain=")}/xmpp/unsetConnection"
puts "onPresence: http://#{getOption("web_domain=")}/xmpp/setPresence"
puts "onUnsetPresence: http://#{getOption("web_domain=")}/xmpp/unsetPresence"
puts "ResetConnection: http://#{getOption("web_domain=")}/xmpp/resetConnection"
puts "SynchronizePresence: http://#{getOption("web_domain=")}/xmpp/synchronizePresence"
puts "##############################"
puts "Social Stream Presence logs in var/log/ejabberd/"
puts "######################################################"
puts ""

Version data entries

52 entries across 52 versions & 3 rubygems

Version Path
social_stream-presence-0.8.0 ejabberd/ejabberd_scripts/development_scripts/show_config.sh
social_stream-0.21.4 presence/ejabberd/ejabberd_scripts/development_scripts/show_config.sh
social_stream-presence-0.7.5 ejabberd/ejabberd_scripts/development_scripts/show_config.sh
social_stream-presence-0.7.4 ejabberd/ejabberd_scripts/development_scripts/show_config.sh
social_stream-0.21.3 presence/ejabberd/ejabberd_scripts/development_scripts/show_config.sh
social_stream-presence-0.7.3 ejabberd/ejabberd_scripts/development_scripts/show_config.sh
social_stream-0.21.2 presence/ejabberd/ejabberd_scripts/development_scripts/show_config.sh
social_stream-presence-0.7.2 ejabberd/ejabberd_scripts/development_scripts/show_config.sh
social_stream-0.21.1 presence/ejabberd/ejabberd_scripts/development_scripts/show_config.sh
social_stream-presence-0.7.1 ejabberd/ejabberd_scripts/development_scripts/show_config.sh
social_stream-0.21.0 presence/ejabberd/ejabberd_scripts/development_scripts/show_config.sh
social_stream-presence-0.7.0 ejabberd/ejabberd_scripts/development_scripts/show_config.sh
social_stream-presence-0.6.3 ejabberd/ejabberd_scripts/development_scripts/show_config.sh
social_stream-0.20.2 presence/ejabberd/ejabberd_scripts/development_scripts/show_config.sh
social_stream-presence-0.6.2 ejabberd/ejabberd_scripts/development_scripts/show_config.sh
social_stream-0.20.1 presence/ejabberd/ejabberd_scripts/development_scripts/show_config.sh
social_stream-presence-0.6.1 ejabberd/ejabberd_scripts/development_scripts/show_config.sh
social_stream-0.20.0 presence/ejabberd/ejabberd_scripts/development_scripts/show_config.sh
social_stream-presence-0.6.0 ejabberd/ejabberd_scripts/development_scripts/show_config.sh
social_stream-presence-0.5.4 ejabberd/ejabberd_scripts/development_scripts/show_config.sh