diff --git a/misc/temporary-enclave-bypass/nginx.conf b/misc/temporary-enclave-bypass/nginx.conf index 74f5b1e..2eea13e 100644 --- a/misc/temporary-enclave-bypass/nginx.conf +++ b/misc/temporary-enclave-bypass/nginx.conf @@ -1,11 +1,21 @@ -worker_processes 10; -worker_rlimit_nofile 8192; +worker_processes 16; events { worker_connections 4096; } http { + sendfile on; + access_log off; + error_log off; + keepalive_requests 100000; + keepalive_timeout 60; + + upstream keepalive-upstream { + server 127.0.0.1:8081; + keepalive 200; + } + server { listen 8080; @@ -15,7 +25,9 @@ http { } location / { - proxy_pass http://127.0.0.1:8081; + proxy_pass http://keepalive-upstream; + proxy_http_version 1.1; + proxy_set_header Connection ""; } } } diff --git a/start.sh b/start.sh index 0f6f89b..18b1a8a 100755 --- a/start.sh +++ b/start.sh @@ -1,7 +1,7 @@ #!/bin/sh nitriding \ - -acme \ + -mock-cert-fp "D87B0D697A90A2503F68E406CC8AFC26F2470F82F707D8E66616BA888B1B43C0" \ -fqdn "star-randsrv.bsg.brave.com" \ -appurl "https://github.com/brave/star-randsrv" \ -appwebsrv "http://127.0.0.1:8080" \