Sha256: 7142e6a317b5982bc5838b083f2e40560bc07d664af0d0ef4d64c2bd793de4f2
Contents?: true
Size: 1.08 KB
Versions: 2
Compression:
Stored size: 1.08 KB
Contents
# require "bundler/setup" require "icaprb/server" require 'logger' include ICAPrb::Server trap('SIGINT') { exit! 0 } ######################################################################## # DIFFERENT WAYS TO RUN THE SERVER # ######################################################################## # normal socket #s = ICAPServer.new # puts 'Server is running on port 1344. Press CTRL+C to exit...' # squid v4 variant #options = {secure: true, # certificate: '../cert.pem', # key: '../key.pem', # tls_socket: true} #s = ICAPServer.new('localhost',11344,options) # puts 'Server is running on port 11344. Press CTRL+C to exit...' # rfc 3507 variant options = {secure: true, certificate: '../cert.pem', key: '../key.pem', tls_socket: false} s = ICAPServer.new('localhost',1344,options) puts 'Server is running on port 1344. Press CTRL+C to exit...' ######################################################################## s.logger.level = Logger::INFO s.services['echo'] = Services::EchoService.new s.run
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
icaprb-server-0.0.2 | bin/start_server.rb |
icaprb-server-0.0.1 | bin/start_server.rb |