better nginx proxy

This commit is contained in:
Para Dox
2025-04-13 13:11:47 +07:00
parent 2e45eade58
commit c4ae3e8850

View File

@@ -13,17 +13,17 @@ map $http_upgrade $is_websocket {
websocket 1;
}
map $status $loggable {
map $status $loggable {
~^[23] 0; # Don't log 2xx and 3xx responses
default 1; # Log 4xx and 5xx responses
}
log_format minimal '$remote_addr - $status $request_time';
server {
listen 80;
server_name _;
log_format minimal '$remote_addr - $status $request_time';
location / {
proxy_pass http://$proxy_connection;
proxy_http_version 1.1; # Override default HTTP/1.0