Add log + remark config

This commit is contained in:
BBaoVanC 2021-10-30 00:06:10 -05:00
parent be8294a8b2
commit 423585bc9a
21 changed files with 53 additions and 0 deletions

View File

@ -40,4 +40,10 @@
} }
} }
(log) {
log {
output file /var/log/caddy/access.log
}
}
import conf.d/* import conf.d/*

View File

@ -3,6 +3,7 @@
bin.boba.best { bin.boba.best {
encode zstd gzip encode zstd gzip
import hsts import hsts
import log
root * /var/www/bin.boba.best root * /var/www/bin.boba.best
php_fastcgi unix//run/php/php-fpm.sock php_fastcgi unix//run/php/php-fpm.sock

View File

@ -2,6 +2,7 @@
dorito.boba.best { dorito.boba.best {
#import hsts #import hsts
import log
redir https://discord.gg/NZWzSCY5UE redir https://discord.gg/NZWzSCY5UE
import basicerrors import basicerrors
} }

View File

@ -3,6 +3,7 @@
drone.boba.best { drone.boba.best {
encode zstd gzip encode zstd gzip
import hsts import hsts
import log
reverse_proxy localhost:8081 { reverse_proxy localhost:8081 {
header_up X-Real-IP {remote_host} header_up X-Real-IP {remote_host}

View File

@ -3,6 +3,7 @@
emotes.boba.best { emotes.boba.best {
encode zstd gzip encode zstd gzip
import hsts import hsts
import log
root * /var/www/emotes.boba.best/public root * /var/www/emotes.boba.best/public
file_server { file_server {

View File

@ -3,6 +3,7 @@
errors.boba.best { errors.boba.best {
encode zstd gzip encode zstd gzip
import hsts import hsts
import log
root * /etc/caddy/errors/img root * /etc/caddy/errors/img
file_server file_server
import basicerrors import basicerrors

View File

@ -3,6 +3,7 @@
flower.boba.best { flower.boba.best {
encode zstd gzip encode zstd gzip
import hsts import hsts
import log
root * /var/www/flower.boba.best root * /var/www/flower.boba.best
handle { handle {

View File

@ -3,6 +3,7 @@
furry.boba.best { furry.boba.best {
encode zstd gzip encode zstd gzip
import hsts import hsts
import log
root * /var/www/furry.boba.best root * /var/www/furry.boba.best
handle { handle {

View File

@ -3,6 +3,7 @@
git.boba.best { git.boba.best {
encode zstd gzip encode zstd gzip
import hsts import hsts
import log
handle_path /_/static/assets/* { handle_path /_/static/assets/* {
root * /var/www/git.boba.best/public root * /var/www/git.boba.best/public

View File

@ -3,6 +3,7 @@
grafana.boba.best { grafana.boba.best {
encode zstd gzip encode zstd gzip
import hsts import hsts
import log
reverse_proxy localhost:84 reverse_proxy localhost:84
import basicerrors import basicerrors

14
conf.d/hetz.boba.best Normal file
View File

@ -0,0 +1,14 @@
# vim: ft=caddyfile
hetz.boba.best {
import hsts
import log
header Access-Control-Allow-Origin *
root * /var/www/hetz.boba.best/public
file_server {
precompressed br gzip
}
import basicerrors
}

View File

@ -3,6 +3,7 @@
lag.matrix.boba.best { lag.matrix.boba.best {
encode zstd gzip encode zstd gzip
import hsts import hsts
import log
reverse_proxy localhost:8001 reverse_proxy localhost:8001
import basicerrors import basicerrors
} }

View File

@ -3,6 +3,7 @@
mail.boba.best mail.bbaovanc.com autodiscover.boba.best autodiscover.bbaovanc.com autoconfig.boba.best autoconfig.bbaovanc.com { mail.boba.best mail.bbaovanc.com autodiscover.boba.best autodiscover.bbaovanc.com autoconfig.boba.best autoconfig.bbaovanc.com {
encode zstd gzip encode zstd gzip
import hsts import hsts
import log
reverse_proxy localhost:8082 { reverse_proxy localhost:8082 {
header_up X-Real-IP {remote_host} header_up X-Real-IP {remote_host}

View File

@ -3,6 +3,9 @@
matrix.boba.best { matrix.boba.best {
encode zstd gzip encode zstd gzip
import hsts import hsts
log {
output file /var/log/caddy/matrix.boba.best.log
}
import matrix-well-known import matrix-well-known

View File

@ -3,6 +3,7 @@
peertube.boba.best { peertube.boba.best {
encode zstd gzip encode zstd gzip
import hsts import hsts
import log
reverse_proxy 127.0.0.1:9000 { reverse_proxy 127.0.0.1:9000 {
header_up X-Real-IP {remote_host} header_up X-Real-IP {remote_host}

13
conf.d/remark.boba.best Normal file
View File

@ -0,0 +1,13 @@
# vim: ft=caddyfile
remark.boba.best {
encode zstd gzip
import hsts
import log
reverse_proxy localhost:86 {
header_up X-Real-IP {remote_host}
}
import basicerrors
}

View File

@ -1,6 +1,7 @@
# vim: ft=caddyfile # vim: ft=caddyfile
rick.boba.best { rick.boba.best {
import log
encode zstd gzip encode zstd gzip
redir https://www.youtube.com/watch?v=dQw4w9WgXcQ temporary redir https://www.youtube.com/watch?v=dQw4w9WgXcQ temporary
import basicerrors import basicerrors

View File

@ -3,6 +3,7 @@
status.boba.best { status.boba.best {
encode zstd gzip encode zstd gzip
import hsts import hsts
import log
reverse_proxy localhost:83 reverse_proxy localhost:83

View File

@ -3,6 +3,7 @@
stib.boba.best { stib.boba.best {
encode zstd gzip encode zstd gzip
import hsts import hsts
import log
root * /var/www/stib.boba.best root * /var/www/stib.boba.best
handle { handle {

View File

@ -2,5 +2,6 @@
turn.boba.best { turn.boba.best {
encode zstd gzip encode zstd gzip
import log
respond "where are you" respond "where are you"
} }

View File

@ -3,6 +3,7 @@
vault.boba.best { vault.boba.best {
encode zstd gzip encode zstd gzip
import hsts import hsts
import log
header { header {
X-XSS-Protection "1; mode=block" X-XSS-Protection "1; mode=block"