move pubnix to IN completely
This commit is contained in:
47
privfrontends/templates/in/pubnix.Caddyfile
Normal file
47
privfrontends/templates/in/pubnix.Caddyfile
Normal file
@@ -0,0 +1,47 @@
|
||||
# Reverse proxy all user sites
|
||||
*.p.projectsegfau.lt {
|
||||
reverse_proxy 192.168.1.82:80
|
||||
import acmedns
|
||||
}
|
||||
*.p.psf.lt {
|
||||
@host header_regexp host Host ^([a-zA-Z0-9]+\-)?([A-Za-z0-9]+)\.p\.psf\.lt
|
||||
handle @host {
|
||||
reverse_proxy 192.168.1.82:80 {
|
||||
header_up Host "{re.host.1}{re.host.2}.p.projectsegfau.lt"
|
||||
}
|
||||
import torloc {re.host.1}{re.host.2}.p
|
||||
}
|
||||
import acmedns
|
||||
}
|
||||
# Redirect base subdomain to the pubnix homepage
|
||||
p.projectsegfau.lt p.psf.lt {
|
||||
redir https://projectsegfau.lt/pubnix
|
||||
import acmedns
|
||||
}
|
||||
|
||||
# Cockpit
|
||||
cockpit.p.projectsegfau.lt {
|
||||
reverse_proxy 192.168.1.82:9090 {
|
||||
transport http {
|
||||
tls_insecure_skip_verify
|
||||
}
|
||||
}
|
||||
import def
|
||||
import torloc cockpit
|
||||
}
|
||||
|
||||
# PublAPI
|
||||
publapi.p.projectsegfau.lt {
|
||||
reverse_proxy 192.168.1.82:3000
|
||||
import def
|
||||
}
|
||||
geminiproxy.projectsegfau.lt geminiproxy.p.projectsegfau.lt gp.p.psf.lt {
|
||||
reverse_proxy 192.168.1.82:8000
|
||||
@robots path /robots.txt
|
||||
handle @robots {
|
||||
respond `User-agent: *
|
||||
Disallow: /` 200
|
||||
}
|
||||
import def
|
||||
import torloc geminiproxy
|
||||
}
|
Reference in New Issue
Block a user