Skip to content

Commit

Permalink
nginx logs
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperknot committed Jul 23, 2024
1 parent d001c1e commit d19f3a4
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 46 deletions.
36 changes: 0 additions & 36 deletions scripts/http_host/http_host_lib/nginx/cf.bak

This file was deleted.

4 changes: 2 additions & 2 deletions scripts/http_host/http_host_lib/nginx/le.conf
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ server {
ssl_prefer_server_ciphers off;

# access log disabled by default
#access_log /data/ofm/http_host/logs_nginx/le-access.jsonl access_json buffer=32k;
access_log off;
access_log /data/ofm/http_host/logs_nginx/le-access.jsonl access_json buffer=32k;
#access_log off;

error_log /data/ofm/http_host/logs_nginx/le-error.log;

Expand Down
4 changes: 2 additions & 2 deletions scripts/http_host/http_host_lib/nginx/ledns.conf
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ server {
ssl_prefer_server_ciphers off;

# access log disabled by default
#access_log /data/ofm/http_host/logs_nginx/ledns-access.jsonl access_json buffer=32k;
access_log off;
access_log /data/ofm/http_host/logs_nginx/ledns-access.jsonl access_json buffer=32k;
#access_log off;

error_log /data/ofm/http_host/logs_nginx/ledns-error.log;

Expand Down
18 changes: 13 additions & 5 deletions ssh_lib/assets/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -43,23 +43,31 @@ http {
gzip_types application/json;

log_format access_json '{'

# general
'"time": "$time_iso8601", '
'"status": $status, '
'"request_method": "$request_method", '
'"uri": "$uri", '
'"request": "$request", '
'"request_time": $request_time, '
'"body_bytes_sent": $body_bytes_sent, '
'"remote_addr": "$remote_addr", '
'"http_x_forwarded_for": "$http_x_forwarded_for", '
'"http_cf_connecting_ip": "$http_cf_connecting_ip", '
'"http_referrer": "$http_referer", '
'"http_user_agent": "$http_user_agent", '
'"scheme": "$scheme", '
'"host": "$host", '
'"http_host": "$http_host", '
'"http_cf_ray": "$http_cf_ray", '
'"http_cf_ipcountry": "$http_cf_ipcountry"'

# IP address related
#'"remote_addr": "$remote_addr", '
#'"http_x_forwarded_for": "$http_x_forwarded_for", '

# CF related
#'"http_cf_ray": "$http_cf_ray", '
#'"http_cf_ipcountry": "$http_cf_ipcountry", '
#'"http_cf_connecting_ip": "$http_cf_connecting_ip", '

'"_": "_"' # no trailing comma
'}';

# access log disabled by default
Expand Down
2 changes: 1 addition & 1 deletion website/src/pages/privacy.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ This page is a static HTML hosted on GitHub pages.

We do not send newsletters. Please follow us on X or GitHub for updates.

The only data we might collect are server logs. Technically, these are disabled by default and are only enabled temporarily to investigate problems with our service.
The only data we might collect are server logs. The IP addresses are not included in these logs, but we reserve the right to temporarily enable them to investigate problems or misuse of our services.

---

Expand Down

0 comments on commit d19f3a4

Please sign in to comment.