better nginx proxy
This commit is contained in:
@@ -13,17 +13,17 @@ map $http_upgrade $is_websocket {
|
|||||||
websocket 1;
|
websocket 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
map $status $loggable {
|
map $status $loggable {
|
||||||
~^[23] 0; # Don't log 2xx and 3xx responses
|
~^[23] 0; # Don't log 2xx and 3xx responses
|
||||||
default 1; # Log 4xx and 5xx responses
|
default 1; # Log 4xx and 5xx responses
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log_format minimal '$remote_addr - $status $request_time';
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name _;
|
server_name _;
|
||||||
|
|
||||||
log_format minimal '$remote_addr - $status $request_time';
|
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://$proxy_connection;
|
proxy_pass http://$proxy_connection;
|
||||||
proxy_http_version 1.1; # Override default HTTP/1.0
|
proxy_http_version 1.1; # Override default HTTP/1.0
|
||||||
|
|||||||
Reference in New Issue
Block a user