mirror of
https://github.com/bensuperpc/infrastructure.git
synced 2024-12-22 16:54:26 +01:00
94 lines
2.5 KiB
Caddyfile
94 lines
2.5 KiB
Caddyfile
www.bensuperpc.org {
|
|
root * /var/www/html
|
|
php_fastcgi wordpress:9000
|
|
|
|
file_server
|
|
encode zstd gzip
|
|
|
|
# metrics /metrics
|
|
|
|
@disallowed {
|
|
path /xmlrpc.php
|
|
path *.sql
|
|
path /wp-content/uploads/*.php
|
|
}
|
|
|
|
rewrite @disallowed '/index.php'
|
|
|
|
respond /uploads/*.php 404
|
|
|
|
header {
|
|
# disable FLoC tracking
|
|
Permissions-Policy interest-cohort=()
|
|
|
|
# enable HSTS
|
|
Strict-Transport-Security max-age=31536000;
|
|
|
|
# disable clients from sniffing the media type
|
|
X-Content-Type-Options nosniff
|
|
|
|
# clickjacking protection
|
|
X-Frame-Options DENY
|
|
|
|
# Disable powerful features we don't need
|
|
Permissions-Policy "geolocation=(), camera=(), microphone=() interest-cohort=()"
|
|
}
|
|
}
|
|
|
|
bensuperpc.org {
|
|
redir https://www.bensuperpc.org{uri} permanent
|
|
}
|
|
|
|
adminer.bensuperpc.org {
|
|
reverse_proxy adminer:8080
|
|
}
|
|
|
|
uptimekuma.bensuperpc.org {
|
|
reverse_proxy uptime-kuma:3001
|
|
}
|
|
|
|
torrent.bensuperpc.org {
|
|
reverse_proxy qbittorrent:8080
|
|
}
|
|
|
|
git.bensuperpc.org {
|
|
reverse_proxy gitea:3000
|
|
}
|
|
|
|
jellyfin.bensuperpc.org {
|
|
reverse_proxy jellyfin:8096
|
|
}
|
|
|
|
syncthing.bensuperpc.org {
|
|
reverse_proxy syncthing:8384 {
|
|
header_up Host {upstream_hostport}
|
|
}
|
|
}
|
|
|
|
link.bensuperpc.org {
|
|
# TODO: Use service with database
|
|
# Friendly links
|
|
redir /gnous https://gnous.eu permanent
|
|
redir /proxy https://imagisphe.re permanent
|
|
redir /patch https://spaceint.fr permanent
|
|
redir /greep https://greep.fr permanent
|
|
|
|
# Youtube links
|
|
redir /rickroll https://www.youtube.com/watch?v=dQw4w9WgXcQ permanent
|
|
redir /babyshark https://www.youtube.com/watch?v=XqZsoesa55w permanent
|
|
redir /cowcowcow https://www.youtube.com/watch?v=FavUpD_IjVY permanent
|
|
redir /badapple https://www.youtube.com/watch?v=FtutLA63Cp8 permanent
|
|
redir /macdo https://www.youtube.com/watch?v=Q16KpquGsIc permanent
|
|
redir /superiser https://www.youtube.com/watch?v=srnyVw-OR0g permanent
|
|
redir /daicon https://youtu.be/-840keiiFDE?si=zIPIokytxcnGw5fJ&t=162 permanent
|
|
redir /scp https://www.youtube.com/watch?v=FGCDndN20G8 permanent
|
|
redir /scpfb https://youtu.be/9zrKk-1E8zM?si=8R_ZBVG3GzMUYOe8&t=36 permanent
|
|
redir /mother https://youtu.be/w3NyycHR3fE?si=rNNSW9zYv0bcO2Eu permanent
|
|
redir /cpu https://www.youtube.com/watch?v=y39D4529FM4 permanent
|
|
redir /chanteur https://youtu.be/HXdP15Ubu6M?si=N0qvhqo--3pmSGmb permanent
|
|
redir /bna https://youtu.be/3T3ofoKfEoY?si=_7HkGQXMC7rBng8O permanent
|
|
redir /jojo https://youtu.be/U0TXIXTzJEY?si=2acWJWX06ju2w4uj permanent
|
|
redir /patapon https://youtu.be/H6CbNHLHkmk?si=ZvU8SzrOK-oCUXT5 permanent
|
|
redir /darkwater https://youtu.be/Tr8ZgF4Dc0E?si=CEOmm2J6Jp5rdbbt permanent
|
|
}
|