Sha256: 0c335b2213395c3be070a4ef0871ab479887053d6cdeba2c62e73ad8b7b6a73f

Contents?: true

Size: 637 Bytes

Versions: 9

Compression:

Stored size: 637 Bytes

Contents

#!/usr/bin/env -S ./bin/falcon virtual --bind-insecure http://[::]:1080 --bind-secure https://[::]:1443
# frozen_string_literal: true

# You will want edit your `/etc/hosts`, adding the following:
# 127.0.0.1 benchmark.localhost beer.localhost hello.localhost

rack 'benchmark.localhost', :self_signed do
	root File.expand_path("examples/benchmark/", __dir__)
end

rack 'beer.localhost', :self_signed do
	root File.expand_path("examples/beer/", __dir__)
end

rack 'hello.localhost', :self_signed do
	root File.expand_path("examples/hello/", __dir__)
end

proxy 'codeotaku.localhost', :self_signed do
	url 'https://www.codeotaku.com'
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
falcon-0.36.4 server.rb
falcon-0.36.3 server.rb
falcon-0.36.2 server.rb
falcon-0.36.1 server.rb
falcon-0.36.0 server.rb
falcon-0.35.6 server.rb
falcon-0.35.5 server.rb
falcon-0.35.4 server.rb
falcon-0.35.3 server.rb