-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve nginx configuration, add mock cert fp
- Loading branch information
Showing
2 changed files
with
17 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,33 @@ | ||
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; | ||
|
||
location /enclave { | ||
proxy_pass https://127.0.0.1:8443; | ||
proxy_ssl_verify off; | ||
} | ||
|
||
location / { | ||
proxy_pass http://127.0.0.1:8081; | ||
proxy_pass http://keepalive-upstream; | ||
proxy_http_version 1.1; | ||
proxy_set_header Connection ""; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters