Skip to content
Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
315 lines (303 sloc) 5.71 KB
################################################
# global #
################################################
(wc) {
prometheus
log /var/log/caddy/access.log {
ipmask 255.255.255.0 ffff:ffff:ffff:fff0::
}
errors /var/log/caddy/error.log
header / Strict-Transport-Security "max-age=31536000"
tls {
protocols tls1.2 tls1.3
dns cloudflare
key_type p384
curves X25519 p521 p384 p256
wildcard
}
}
(cert) {
prometheus
log /var/log/caddy/access.log {
ipmask 255.255.255.0 ffff:ffff:ffff:fff0::
}
errors /var/log/caddy/error.log
header / Strict-Transport-Security "max-age=31536000"
tls {
protocols tls1.2 tls1.3
dns cloudflare
key_type p384
curves X25519 p521 p384 p256
}
}
(cert-php) {
prometheus
log /var/log/caddy/access.log {
ipmask 255.255.255.0 ffff:ffff:ffff:fff0::
}
errors /var/log/caddy/error.log
header / Strict-Transport-Security "max-age=31536000"
tls {
protocols tls1.2 tls1.3
dns cloudflare
key_type p384
curves X25519 p521 p384 p256
}
fastcgi / /run/php/php7.2-fpm.sock php {
ext .php
split .php
index index.php
}
}
(wc-php) {
prometheus
log /var/log/caddy/access.log {
ipmask 255.255.255.0 ffff:ffff:ffff:fff0::
}
errors /var/log/caddy/error.log
header / Strict-Transport-Security "max-age=31536000"
tls {
protocols tls1.2 tls1.3
dns cloudflare
key_type p384
curves X25519 p521 p384 p256
wildcard
}
fastcgi / /run/php/php7.2-fpm.sock php {
ext .php
split .php
index index.php
}
}
(int-auth) {
jwt {
path /
redirect https://auth.int.conor-burns.com/login?backTo=https%3A%2F%2F{host}{rewrite_uri_escaped}
allow sub mail@conor-burns.com
allow sub Conor
}
}
(onion) {
cache
prometheus
log /var/log/caddy/access.log {
ipmask 255.255.255.0 ffff:ffff:ffff:fff0::
}
errors /var/log/caddy/error.log
tls off
}
(onion-php) {
cache
prometheus
log /var/log/caddy/access.log {
ipmask 255.255.255.0 ffff:ffff:ffff:fff0::
}
errors /var/log/caddy/error.log
tls off
fastcgi / /run/php/php7.2-fpm.sock php {
ext .php
split .php
index index.php
}
}
################################################
# conorb.me #
################################################
www.conorb.me {
import wc
redir https://conorb.me{uri}
}
conorb.me {
import cert
cache
root /var/www/conor
}
################################################
# conorb.me (onion) #
################################################
http://www.conorblc245kc43q.onion {
import onion
redir http://conorblc245kc43q.onion{uri}
}
http://conorblc245kc43q.onion {
import onion
root /var/www/onion/main
}
http://*.conorblc245kc43q.onion {
import onion
root /var/www/onion
rewrite {
to /{label1}{uri}
}
}
################################################
# conor-burns.com #
################################################
www.conor-burns.com {
import wc
redir https://conor-burns.com{uri}
}
conor-burns.com {
import cert
minify
cache
root /var/www/main
git github.com/Conor-Burns/web-main
}
auth.int.conor-burns.com {
import wc
redir 302 {
if {path} is /
/ /login
}
login {
htpasswd file=/var/www/auth/.auth
import /etc/ssl/caddy/auth/.google
redirect_check_referer false
redirect_host_file /var/www/auth/redirect_hosts.txt
cookie_domain int.conor-burns.com
}
}
https://*.conor-burns.com {
import cert
root /var/www/all
rewrite {
to /{label1}{uri}
}
}
blog.conor-burns.com {
import wc
push
proxy / localhost:888 {
transparent
}
}
docker.conor-burns.com {
import wc
proxy / localhost:9000 {
transparent
websocket
}
}
cloud.conor-burns.com {
import wc
proxy / localhost:8999 {
transparent
}
}
status.conor-burns.com {
import wc
proxy / localhost:3123 {
transparent
}
}
prom.conor-burns.com {
import wc
proxy / localhost:9090 {
transparent
}
}
map.conor-burns.com {
import wc
proxy / localhost:8123 {
transparent
}
}
mail.conor-burns.com autodiscover.conor-burns.com autoconfig.conor-burns.com {
import wc
proxy / localhost:8989 {
transparent
}
}
paste.conor-burns.com {
import wc
proxy / localhost:7777 {
transparent
}
}
dash.conor-burns.com {
import wc
proxy / localhost:19999 {
transparent
}
}
git.conor-burns.com {
import wc
proxy / localhost:3000 {
transparent
}
}
search.conor-burns.com {
import wc
proxy / localhost:8888 {
transparent
}
}
net.conor-burns.com {
import wc
proxy / localhost:8311 {
transparent
}
}
files.conor-burns.com {
import wc
root /var/www/share/srv/public
browse
}
projects.conor-burns.com {
import wc
root /var/www/projects
browse
}
ip.conor-burns.com {
import wc-php
cache
root /var/www/ip
}
php.int.conor-burns.com {
import int-auth
import wc-php
root /var/www/php
}
https://test.conor-burns.com {
import wc
root /var/www/all/speed
browse
}
################################################
# kriener.photography #
################################################
www.kriener.photography {
import wc
redir https://kriener.photography{uri}
}
kriener.photography {
import cert
push
proxy / localhost:889 {
transparent
}
}
cloud.kriener.photography {
import wc
proxy / localhost:9888 {
transparent
}
}
files.kriener.photography {
import wc
root /var/www/cloud/srv/public
browse
}
################################################
# this1meme.com #
################################################
www.this1meme.com {
import wc
redir https://this1meme.com{uri}
}
this1meme.com {
import cert
cache
root /var/www/projects/bbm
}
You can’t perform that action at this time.