Added a informational redirect for uneducated people
This commit is contained in:
parent
60958cc394
commit
10b738423c
|
@ -3,7 +3,7 @@
|
|||
|
||||
. ../APKBUILD-config.template
|
||||
|
||||
pkgver=2021.06.25.01
|
||||
pkgver=2021.07.04.01
|
||||
pkgrel=0
|
||||
depends="redxen-secret-letsencrypt-full redxen-data-haproxy-errorpages"
|
||||
checkdepends="haproxy"
|
||||
|
@ -15,5 +15,5 @@ check() {
|
|||
}
|
||||
|
||||
sha512sums="
|
||||
fdcf917875b7b04ed4bdffe8712d826aa2b85b17531295915062125be838008c79f6cf4ddb76fe20b87a5d66e2c8d506963f17c1581ffa1b0581bd35e51451fa main.cfg
|
||||
7ac14a7902c5548abc487696db5df21c0854b58b6dd2bdf298758cf23b5b67ff62b65d888f6cd0b0c83f072ff9117b122b50218963382f93c3e60e1e0a0e9f55 main.cfg
|
||||
"
|
||||
|
|
|
@ -65,59 +65,68 @@ frontend http
|
|||
bind ipv4@:443,ipv6@:443 ssl crt /etc/redxen/letsencrypt/full.crt alpn h2,http/1.1
|
||||
bind ipv4@:80,ipv6@:80
|
||||
|
||||
acl root path /
|
||||
acl seedbox hdr_beg(host) -i seed.redxen
|
||||
|
||||
redirect prefix /web code 302 if seedbox root
|
||||
|
||||
http-response set-header X-Forwarded-Proto https
|
||||
http-response set-header X-XSS-Protection 1;\ mode=block
|
||||
http-response set-header X-Content-Type-Options nosniff
|
||||
http-response set-header Referrer-Policy no-referrer-when-downgrade
|
||||
http-response set-header Strict-Transport-Security max-age=31536000;\ includeSubDomains;\ preload
|
||||
|
||||
use_backend backend-transmission if seedbox
|
||||
use_backend backend-root if { hdr_beg(host) -i redxen }
|
||||
use_backend backend-grafana if { hdr_beg(host) -i stats.redxen }
|
||||
#use_backend backend-pleroma if { hdr_beg(host) -i social.redxen }
|
||||
use_backend backend-gitea if { hdr_beg(host) -i git.redxen }
|
||||
use_backend backend-seedown if { hdr_beg(host) -i sd.redxen }
|
||||
use_backend backend-packages if { hdr_beg(host) -i packages.redxen }
|
||||
#use_backend backend-monerod if { hdr_beg(host) -i monerod.redxen }
|
||||
acl root path /
|
||||
|
||||
acl root hdr_beg(host) -i redxen
|
||||
acl stats hdr_beg(host) -i stats.redxen
|
||||
acl fedi hdr_beg(host) -i social.redxen
|
||||
acl git hdr_beg(host) -i git.redxen
|
||||
acl btdown hdr_beg(host) -i sd.redxen
|
||||
acl btdaemon hdr_beg(host) -i seed.redxen
|
||||
acl packs hdr_beg(host) -i packages.redxen
|
||||
acl monerod hdr_beg(host) -i monerod.redxen
|
||||
|
||||
redirect location https://en.uncyclopedia.co/wiki/South_Africa code 302 if fedi
|
||||
redirect prefix /web code 302 if btdaemon root
|
||||
|
||||
use_backend backend-root if root
|
||||
use_backend backend-stats if stats
|
||||
#use_backend backend-fedi if fedi
|
||||
use_backend backend-git if git
|
||||
use_backend backend-btdown if btdown
|
||||
use_backend backend-btdaemon if btdaemon
|
||||
use_backend backend-packages if packs
|
||||
#use_backend backend-monerod if monerod
|
||||
|
||||
backend backend-root
|
||||
server-template root 1 _root._tcp.routinginfo.internal
|
||||
option httpchk HEAD / HTTP/1.1
|
||||
http-check send hdr Host redxen.eu
|
||||
|
||||
backend backend-transmission
|
||||
server-template transmission 1 _transmission._tcp.routinginfo.internal
|
||||
|
||||
backend backend-grafana
|
||||
backend backend-stats
|
||||
server-template grafana 1 _grafana._tcp.routinginfo.internal
|
||||
option httpchk HEAD / HTTP/1.1
|
||||
http-check send hdr Host stats.redxen.eu
|
||||
|
||||
backend backend-seedown
|
||||
#backend backend-fedi
|
||||
# server-template pleroma 1 _pleroma._tcp.routinginfo.internal
|
||||
# option httpchk HEAD / HTTP/1.1
|
||||
# http-check send hdr Host social.redxen.eu
|
||||
|
||||
backend backend-git
|
||||
server-template gitea 1 _gitea._tcp.routinginfo.internal
|
||||
option httpchk HEAD / HTTP/1.1
|
||||
http-check send hdr Host gitea.redxen.eu
|
||||
|
||||
backend backend-btdown
|
||||
server-template seedown 1 _seedown._tcp.routinginfo.internal
|
||||
option httpchk HEAD / HTTP/1.1
|
||||
http-check send hdr Host sd.redxen.eu
|
||||
|
||||
backend backend-btdaemon
|
||||
server-template transmission 1 _transmission._tcp.routinginfo.internal
|
||||
|
||||
backend backend-packages
|
||||
server-template packages 1 _packages._tcp.routinginfo.internal
|
||||
option httpchk HEAD / HTTP/1.1
|
||||
http-check send hdr Host packages.redxen.eu
|
||||
|
||||
#backend backend-pleroma
|
||||
# server-template pleroma 1 _pleroma._tcp.routinginfo.internal
|
||||
# option httpchk HEAD / HTTP/1.1
|
||||
# http-check send hdr Host social.redxen.eu
|
||||
|
||||
backend backend-gitea
|
||||
server-template gitea 1 _gitea._tcp.routinginfo.internal
|
||||
option httpchk HEAD / HTTP/1.1
|
||||
http-check send hdr Host gitea.redxen.eu
|
||||
|
||||
#backend backend-monerod
|
||||
# server-template monerod 1 _monerod._tcp.routinginfo.internal
|
||||
# option httpchk POST /json_rpc HTTP/1.1
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
. ../APKBUILD-data.template
|
||||
|
||||
pkgver=2021.07.17.02
|
||||
pkgver=2021.08.04.01
|
||||
pkgrel=0
|
||||
checkdepends="bind-tools"
|
||||
makedepends="
|
||||
|
@ -69,6 +69,6 @@ internal() {
|
|||
}
|
||||
|
||||
sha512sums="
|
||||
ffc020ca3934d230484540d30861385730e4d2c8655267320403a4a8447b7ec4606d20a71f718d237308a5142eb9756273643b0bfab77d5158da4bfd495c6003 redxen.eu
|
||||
01c6e88047340dc0080eb505075f62dbc8a1642b230b571f4d852ce67f40cb860012977b802f63677cf5fbe9ddecd60a591247ecaaead9fcdfb6e15109b91bb6 redxen.eu
|
||||
f6e43a72d91106319151c614f12d2f3a498a0378870901d9e7e2ecacf62b40060c4f314a6e6cdd1683ec56067e014182e4389f1c9387c58e381bad64349bda15 internal
|
||||
"
|
||||
|
|
|
@ -55,7 +55,7 @@ lin.falkenstein.hetzner CNAME 12180711.fsn1-dc
|
|||
;
|
||||
|
||||
; Frontend
|
||||
; social CNAME @ ; on HOLD
|
||||
social CNAME @ ; on HOLD, currently redirects to do a little trolling
|
||||
; monerod CNAME @ ; on HOLD
|
||||
git CNAME @
|
||||
stats CNAME @
|
||||
|
|
Loading…
Reference in New Issue