Skip to content

Commit 658df84

Browse files
authored
docs: update README with NGINX Proxy Manager logging details
Added information about NGINX Proxy Manager log format and storage.
1 parent db1970e commit 658df84

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

nginx/README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,24 @@ set_real_ip_from 10.0.0.0/8;
120120
real_ip_header X-Forwarded-For;
121121
```
122122
123+
## NGINX Proxy Manager
124+
125+
NGINX Proxy Manager may use a slightly different log format to default NGINX.
126+
127+
```nginx
128+
log_format combined '$remote_addr - $remote_user [$time_local] '
129+
'"$request" $status $body_bytes_sent '
130+
'"$http_referer" "$http_user_agent"';
131+
```
132+
133+
It also stores logs in `/data/logs`.
134+
135+
```env
136+
NGINX_ANALYTICS_LOG_FORMAT='$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"'
137+
NGINX_ANALYTICS_ACCESS_PATH=/data/logs
138+
NGINX_ANALYTICS_ERROR_PATH=/data/logs
139+
```
140+
123141
## Docker
124142
125143
If your NGINX instance runs inside a Docker container, you'll need to mount the log directory to ensure logs are persisted outside of the container.

0 commit comments

Comments
 (0)