Compare commits
9 Commits
d66f822573
...
master
Author | SHA1 | Date | |
---|---|---|---|
426afc4f79 | |||
84470571d8 | |||
aee17c11e3 | |||
34affedd0b | |||
033ee5c253 | |||
34131debb5 | |||
4c641ef08d | |||
58ff080106 | |||
047f6943a3 |
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,5 +1 @@
|
|||||||
email
|
email
|
||||||
|
|
||||||
errors/img/
|
|
||||||
|
|
||||||
conf.d/goaccess.boba.best
|
|
||||||
|
32
Caddyfile
32
Caddyfile
@ -5,18 +5,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
(basicerrors) {
|
(basicerrors) {
|
||||||
# servers :443 {
|
|
||||||
# protocol {
|
|
||||||
# experimental_http3
|
|
||||||
# }
|
|
||||||
# }
|
|
||||||
#}
|
|
||||||
|
|
||||||
(basicerrors) {
|
|
||||||
handle_errors {
|
handle_errors {
|
||||||
templates
|
templates
|
||||||
|
|
||||||
templates
|
|
||||||
rewrite * /index.html
|
rewrite * /index.html
|
||||||
root * /etc/caddy/errors
|
root * /etc/caddy/errors
|
||||||
file_server
|
file_server
|
||||||
@ -28,26 +18,4 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
import conf.d/*
|
import conf.d/*
|
||||||
handle_path /.well-known/matrix/* {
|
|
||||||
header Access-Control-Allow-Origin "*"
|
|
||||||
header Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS"
|
|
||||||
header Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept, Authorization"
|
|
||||||
|
|
||||||
rewrite * {path}.json
|
|
||||||
root * /etc/caddy/matrix_well_known
|
|
||||||
file_server
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
(log) {
|
|
||||||
log {
|
|
||||||
output file /var/log/caddy/access.log {
|
|
||||||
roll_size 1GiB
|
|
||||||
roll_keep 5
|
|
||||||
roll_keep_for 168h
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
import conf.d/*
|
|
||||||
import conf.d/*
|
import conf.d/*
|
||||||
|
@ -1,19 +0,0 @@
|
|||||||
# vim: ft=caddyfile
|
|
||||||
|
|
||||||
www.boba.best {
|
|
||||||
redir https://boba.best{uri}
|
|
||||||
}
|
|
||||||
boba.best {
|
|
||||||
import matrix-well-known
|
|
||||||
import hsts
|
|
||||||
import log
|
|
||||||
|
|
||||||
header Access-Control-Allow-Origin *
|
|
||||||
header Cache-Control no-cache
|
|
||||||
root * /var/www/boba.best/public
|
|
||||||
file_server {
|
|
||||||
precompressed br gzip
|
|
||||||
}
|
|
||||||
|
|
||||||
import basicerrors
|
|
||||||
}
|
|
@ -1,13 +0,0 @@
|
|||||||
# vim: ft=caddyfile
|
|
||||||
|
|
||||||
drone.boba.best {
|
|
||||||
encode zstd gzip
|
|
||||||
import hsts
|
|
||||||
import log
|
|
||||||
|
|
||||||
reverse_proxy localhost:8081 {
|
|
||||||
header_up X-Real-IP {remote_host}
|
|
||||||
}
|
|
||||||
|
|
||||||
import basicerrors
|
|
||||||
}
|
|
@ -1,10 +0,0 @@
|
|||||||
# vim: ft=caddyfile
|
|
||||||
|
|
||||||
errors.boba.best {
|
|
||||||
encode zstd gzip
|
|
||||||
import hsts
|
|
||||||
import log
|
|
||||||
root * /etc/caddy/errors/img
|
|
||||||
file_server
|
|
||||||
import basicerrors
|
|
||||||
}
|
|
@ -3,12 +3,6 @@
|
|||||||
git.boba.best {
|
git.boba.best {
|
||||||
encode zstd gzip
|
encode zstd gzip
|
||||||
import hsts
|
import hsts
|
||||||
import log
|
|
||||||
|
|
||||||
handle_path /_/static/assets/* {
|
|
||||||
root * /var/www/git.boba.best/public
|
|
||||||
file_server
|
|
||||||
}
|
|
||||||
|
|
||||||
handle {
|
handle {
|
||||||
reverse_proxy localhost:85 {
|
reverse_proxy localhost:85 {
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
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
|
||||||
|
@ -1,14 +0,0 @@
|
|||||||
# 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
|
|
||||||
}
|
|
@ -3,7 +3,6 @@
|
|||||||
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}
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
# vim: ft=caddyfile
|
|
||||||
|
|
||||||
:2020 {
|
|
||||||
metrics
|
|
||||||
}
|
|
@ -3,7 +3,6 @@
|
|||||||
share.boba.best {
|
share.boba.best {
|
||||||
encode zstd gzip
|
encode zstd gzip
|
||||||
import hsts
|
import hsts
|
||||||
import log
|
|
||||||
|
|
||||||
handle {
|
handle {
|
||||||
reverse_proxy localhost:87
|
reverse_proxy localhost:87
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
status.boba.best, status.bbaovanc.com {
|
status.boba.best, status.bbaovanc.com {
|
||||||
encode zstd gzip
|
encode zstd gzip
|
||||||
import hsts
|
import hsts
|
||||||
import log
|
|
||||||
|
|
||||||
reverse_proxy localhost:83
|
reverse_proxy localhost:83
|
||||||
|
|
||||||
|
@ -1,11 +0,0 @@
|
|||||||
# vim: ft=caddyfile
|
|
||||||
|
|
||||||
talkyard.bbaovanc.com {
|
|
||||||
encode zstd gzip
|
|
||||||
import hsts
|
|
||||||
import log
|
|
||||||
|
|
||||||
reverse_proxy localhost:88
|
|
||||||
|
|
||||||
import basicerrors
|
|
||||||
}
|
|
@ -3,7 +3,6 @@
|
|||||||
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"
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
#!/bin/sh -x
|
|
||||||
|
|
||||||
mkdir -p img/
|
|
||||||
cd img/
|
|
||||||
curl https://http.cat | grep -oE '[0-9]{3}\.jpg' | sort | uniq | parallel $@ 'wget -q https://http.cat/{} && echo "DL {}"'
|
|
@ -2,7 +2,7 @@
|
|||||||
{{ $text := placeholder "http.error.status_text" -}}
|
{{ $text := placeholder "http.error.status_text" -}}
|
||||||
{{ $full_text := printf "%s %s" (placeholder "http.error.status_code") (placeholder "http.error.status_text") -}}
|
{{ $full_text := printf "%s %s" (placeholder "http.error.status_code") (placeholder "http.error.status_text") -}}
|
||||||
{{ $host := placeholder "http.request.host" -}}
|
{{ $host := placeholder "http.request.host" -}}
|
||||||
{{ $img_url := (printf "https://errors.boba.best/%s.jpg" $code) -}}
|
{{ $img_url := (printf "https://http.cat/%s.jpg" $code) -}}
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>{{ $full_text }}</title>
|
<title>{{ $full_text }}</title>
|
||||||
|
Reference in New Issue
Block a user