fix logging

This commit is contained in:
Arya 2023-08-15 14:33:56 +05:30
parent 951c61615c
commit ca17b055d7
Signed by: arya
GPG Key ID: 842D12BDA50DF120
4 changed files with 8 additions and 61 deletions

View File

@ -1,3 +1,9 @@
{
log {
output discard
}
}
(tor) { (tor) {
header { header {
-Strict-Transport-Security -Strict-Transport-Security
@ -46,16 +52,6 @@
X-XSS-Protection "1; mode=block" X-XSS-Protection "1; mode=block"
defer defer
} }
log {
output discard
format filter {
wrap console
fields {
request>remote_ip replace REDACTED
request>headers>X-Forwarded-For replace REDACTED
}
}
}
{% if inventory_hostname == 'in' %} {% if inventory_hostname == 'in' %}
import acmedns import acmedns
@ -125,16 +121,6 @@ inv.{{ server_prefix }}.projectsegfau.lt inv.projectsegfau.lt invidious.projects
X-XSS-Protection "1; mode=block" X-XSS-Protection "1; mode=block"
defer defer
}
log {
output discard
format filter {
wrap console
fields {
request>remote_ip replace REDACTED
request>headers>X-Forwarded-For replace REDACTED
}
}
} }
@badbots { @badbots {
header "User-Agent" "Go-http-client/2.0" header "User-Agent" "Go-http-client/2.0"
@ -271,16 +257,6 @@ search.{{ server_prefix }}.projectsegfau.lt search.projectsegfau.lt s.psf.lt s.{
X-XSS-Protection "1; mode=block" X-XSS-Protection "1; mode=block"
defer defer
}
log {
output discard
format filter {
wrap console
fields {
request>remote_ip replace REDACTED
request>headers>X-Forwarded-For replace REDACTED
}
}
} }
@badbots { @badbots {
header "User-Agent" "Go-http-client/2.0" header "User-Agent" "Go-http-client/2.0"
@ -308,16 +284,6 @@ pi.{{ server_prefix }}.psf.lt pi.psf.lt {
X-XSS-Protection "1; mode=block" X-XSS-Protection "1; mode=block"
defer defer
}
log {
output discard
format filter {
wrap console
fields {
request>remote_ip replace REDACTED
request>headers>X-Forwarded-For replace REDACTED
}
}
} }
@badbots { @badbots {
header "User-Agent" "Go-http-client/2.0" header "User-Agent" "Go-http-client/2.0"

View File

@ -271,8 +271,9 @@ kbin.projectsegfau.lt, kb.psf.lt {
} }
import def import def
} }
libretranslate.projectsegfau.lt lt.psf.lt libretranslate.in.projectsegfau.lt { libretranslate.projectsegfau.lt lt.psf.lt {
reverse_proxy 192.168.5.2:5005 reverse_proxy 192.168.5.2:5005
import def
} }
gothub.dev.projectsegfau.lt gh.dev.psf.lt { gothub.dev.projectsegfau.lt gh.dev.psf.lt {
reverse_proxy 192.168.5.2:1025 reverse_proxy 192.168.5.2:1025

View File

@ -21,16 +21,6 @@ grafana.projectsegfau.lt {
# MailU # MailU
mail.projectsegfau.lt { mail.projectsegfau.lt {
log {
output file /var/log/caddy/mail.projectsegfau.lt.log {
roll_disabled
roll_size 512M
roll_uncompressed
roll_local_time
roll_keep 3
roll_keep_for 48h
}
}
import def import def
reverse_proxy 192.168.5.5:8082 reverse_proxy 192.168.5.5:8082
} }

View File

@ -27,16 +27,6 @@ inv.bp.projectsegfau.lt, i.bp.psf.lt {
X-XSS-Protection "1; mode=block" X-XSS-Protection "1; mode=block"
defer defer
} }
log {
output discard
format filter {
wrap console
fields {
request>remote_ip replace REDACTED
request>headers>X-Forwarded-For replace REDACTED
}
}
}
import torloc invbp import torloc invbp
import i2ploc pjsfi2szfkb4guqzmfmlyq4no46fayertjrwt4h2uughccrh2lvq.b32.i2p import i2ploc pjsfi2szfkb4guqzmfmlyq4no46fayertjrwt4h2uughccrh2lvq.b32.i2p
} }