-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4d01c70
commit 53cc346
Showing
4 changed files
with
49 additions
and
3 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
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
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
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
worker_processes 1; | ||
|
||
events { | ||
worker_connections 1024; | ||
} | ||
|
||
http { | ||
include mime.types; | ||
|
||
map $http_user_agent $log_ua { | ||
~healthcheck 0; | ||
|
||
default 1; | ||
} | ||
|
||
server { | ||
listen 8080; | ||
|
||
allow 10.0.0.0/8; | ||
deny all; | ||
|
||
access_log /var/log/proxy_access.log combined if=$log_ua; | ||
access_log /dev/stdout; | ||
error_log /dev/stderr; | ||
|
||
resolver 1.1.1.1 ipv6=off; | ||
|
||
proxy_connect; | ||
proxy_connect_allow 443 563; | ||
proxy_connect_connect_timeout 60s; | ||
proxy_connect_read_timeout 60s; | ||
proxy_connect_send_timeout 60s; | ||
|
||
location / { | ||
client_max_body_size 0; | ||
proxy_http_version 1.1; | ||
proxy_set_header Host $host; | ||
|
||
proxy_pass http://$host; | ||
} | ||
} | ||
} |