Sha256: 50be946b0889f01dddb25c3dae6f412ef9d452e51d9217833c7d12e50b882504

Contents?: true

Size: 465 Bytes

Versions: 11

Compression:

Stored size: 465 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 = Polyphony::HTTP::Server::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

11 entries across 11 versions & 1 rubygems

Version Path
tipi-0.38 examples/rack_server_https.rb
tipi-0.37.2 examples/rack_server_https.rb
tipi-0.37.1 examples/rack_server_https.rb
tipi-0.37 examples/rack_server_https.rb
tipi-0.36 examples/rack_server_https.rb
tipi-0.35 examples/rack_server_https.rb
tipi-0.34 examples/rack_server_https.rb
tipi-0.33 examples/rack_server_https.rb
tipi-0.32 examples/rack_server_https.rb
tipi-0.31 examples/rack_server_https.rb
tipi-0.30 examples/rack_server_https.rb