-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhttpd.conf
39 lines (35 loc) · 1017 Bytes
/
httpd.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
ServerName localhost
Listen 8080
PidFile ./httpd.pid
LoadModule websocket_module /usr/lib/apache2/modules/mod_websocket.so
SetHandler grpcbackend
LoadModule grpcbackend_module ./mod_grpcbackend.so
LogLevel info
ErrorLog "|/bin/cat"
LogFormat "%h %l %u %t \"%r\" %>s %b" common
CustomLog "|/bin/cat" common
DocumentRoot "."
CoreDumpDirectory /tmp
GrpcEnabled on
GrpcConnectTimeout 500
#GrpcCallTimeout 1000
#GrpcHost 127.0.0.1:50051
GrpcHost unix:/tmp/grpcbackend.sock
<Location "/ws">
SetHandler websocket-handler
WebsocketHandler internal grpcbackend
WebSocketOriginCheck Off
</Location>
<IfModule mpm_event_module>
StartServers 1
MinSpareThreads 1
MaxSpareThreads 10
ThreadLimit 64
ThreadsPerChild 10
MaxRequestWorkers 150
MaxConnectionsPerChild 10
</IfModule>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
# Conflicts: mpm_worker mpm_prefork
LoadModule mpm_event_module /usr/lib/apache2/modules/mod_mpm_event.so
LoadModule authz_core_module /usr/lib/apache2/modules/mod_authz_core.so