Skip to content

Instantly share code, notes, and snippets.

@kazuho
Created October 10, 2018 05:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kazuho/eb64d0744045b14ba627a6ae60e7b934 to your computer and use it in GitHub Desktop.
Save kazuho/eb64d0744045b14ba627a6ae60e7b934 to your computer and use it in GitHub Desktop.
num-threads: 1
listen:
port: 8080
hosts:
default:
listen:
port: 8443
ssl:
certificate-file: examples/h2o/server.crt
key-file: examples/h2o/server.key
paths:
"/":
mruby.handler: |
Proc.new do |env|
[200, [], ["hello world"]]
end
file.dir: examples/h2o/doc_root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment