Sha256: 1dd8ad5e9a7e55c21e7caa7990f1a50366c01ced1a44bf70a7bb9d7297de9475

Contents?: true

Size: 446 Bytes

Versions: 15

Compression:

Stored size: 446 Bytes

Contents

# frozen_string_literal: true

require 'bundler/setup'
require 'tipi'
require 'localhost/authority'

app_path = ARGV.first || File.expand_path('./config.ru', __dir__)
app = Tipi::RackAdapter.load(app_path)

authority = Localhost::Authority.fetch
opts = {
  reuse_addr:     true,
  dont_linger:    true,
  secure_context: authority.server_context
}

puts 'listening on port 1234'
puts "pid: #{Process.pid}"
Tipi.serve('0.0.0.0', 1234, opts, &app)

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
tipi-0.55 examples/rack_server_https.rb
tipi-0.54 examples/rack_server_https.rb
tipi-0.53 examples/rack_server_https.rb
tipi-0.52 examples/rack_server_https.rb
tipi-0.51 examples/rack_server_https.rb
tipi-0.50 examples/rack_server_https.rb
tipi-0.49 examples/rack_server_https.rb
tipi-0.47 examples/rack_server_https.rb
tipi-0.46 examples/rack_server_https.rb
tipi-0.45 examples/rack_server_https.rb
tipi-0.43 examples/rack_server_https.rb
tipi-0.42 examples/rack_server_https.rb
tipi-0.41 examples/rack_server_https.rb
tipi-0.40 examples/rack_server_https.rb
tipi-0.39 examples/rack_server_https.rb