2014-11-24 11:01:12 +01:00
|
|
|
# Kore websocket example
|
|
|
|
|
2019-09-27 20:00:35 +02:00
|
|
|
server tls {
|
2019-09-27 12:22:35 +02:00
|
|
|
bind 127.0.0.1 8888
|
|
|
|
}
|
|
|
|
|
2014-11-24 11:01:12 +01:00
|
|
|
load ./websocket.so
|
|
|
|
|
2015-05-06 10:59:43 +02:00
|
|
|
tls_dhparam dh2048.pem
|
2015-02-06 09:02:29 +01:00
|
|
|
|
2015-06-23 18:17:14 +02:00
|
|
|
# Increase workers so connections are spread
|
|
|
|
# across them to demonstrate WEBSOCKET_BROADCAST_GLOBAL.
|
|
|
|
workers 4
|
|
|
|
|
2014-11-24 11:01:12 +01:00
|
|
|
websocket_maxframe 65536
|
|
|
|
websocket_timeout 20
|
|
|
|
|
2017-09-19 15:16:02 +02:00
|
|
|
domain * {
|
2019-09-27 12:22:35 +02:00
|
|
|
attach tls
|
|
|
|
|
2017-02-26 02:02:39 +01:00
|
|
|
certfile cert/server.pem
|
|
|
|
certkey cert/key.pem
|
2014-11-24 11:01:12 +01:00
|
|
|
|
2019-11-15 08:11:02 +01:00
|
|
|
route / page
|
|
|
|
route /connect page_ws_connect
|
2014-11-24 11:01:12 +01:00
|
|
|
}
|