Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve nginx configuration, add mock cert fp #162

Merged
merged 1 commit into from
Aug 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions misc/temporary-enclave-bypass/nginx.conf
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
worker_processes 10;
worker_rlimit_nofile 8192;
worker_processes 16;

events {
worker_connections 4096;
}

http {
sendfile on;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this do anything? I thought we didn't have any static content.

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;

Expand All @@ -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 "";
}
}
}
2 changes: 1 addition & 1 deletion start.sh
Original file line number Diff line number Diff line change
@@ -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" \
Expand Down