forked from mobilecoinfoundation/mobilecoin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfog-nginx.conf
33 lines (27 loc) · 843 Bytes
/
fog-nginx.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
worker_processes 5; ## Default: 1
error_log /tmp/fog-nginx-error.log;
pid /tmp/fog-nginx-nginx.pid;
worker_rlimit_nofile 8192;
daemon off;
events {
worker_connections 4096; ## Default: 1024
}
http {
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent"';
server {
listen FOG_NGINX_PORT http2;
access_log /tmp/fog-nginx-access.log main;
error_log /tmp/fog-nginx-error.log;
location /fog_view {
grpc_pass grpc://localhost:FOG_VIEW_PORT;
}
location /fog_ledger {
grpc_pass grpc://localhost:FOG_LEDGER_PORT;
}
location /report {
grpc_pass grpc://localhost:FOG_REPORT_PORT;
}
}
}