mirror of
https://github.com/mat-1/matdoesdev.git
synced 2025-08-02 14:46:04 +00:00
move .cobalt to root
This commit is contained in:
parent
8665334813
commit
39ab23cba2
3 changed files with 72 additions and 13 deletions
81
Caddyfile
81
Caddyfile
|
@ -1,5 +1,4 @@
|
||||||
# xcaddy build \
|
# xcaddy build --with github.com/mat-1/matdoesdev-caddy
|
||||||
# --with github.com/mat-1/matdoesdev-caddy
|
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -14,6 +13,7 @@
|
||||||
@do_https_redirect {
|
@do_https_redirect {
|
||||||
not header_regexp veryoldbrowser User-Agent Navigator|MSIE|Mosaic|Kindle|^curl|NintendoBrowser/
|
not header_regexp veryoldbrowser User-Agent Navigator|MSIE|Mosaic|Kindle|^curl|NintendoBrowser/
|
||||||
not host *.onion *.*.onion
|
not host *.onion *.*.onion
|
||||||
|
not host *.i2p *.*.i2p
|
||||||
protocol http
|
protocol http
|
||||||
}
|
}
|
||||||
redir @do_https_redirect https://{host}{uri}
|
redir @do_https_redirect https://{host}{uri}
|
||||||
|
@ -36,7 +36,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
# this is necessary for http:// to work on old browsers
|
# this is necessary for http:// to work on old browsers
|
||||||
http://matdoes.dev https://matdoes.dev http://matctazmu565vivubva3p3bulaneangiff47xmnezzjx2nuinwjoxjyd.onion {
|
http://matdoes.dev https://matdoes.dev http://matctazmu565vivubva3p3bulaneangiff47xmnezzjx2nuinwjoxjyd.onion http://matcta5umrjruf3t5gzspk2fumdsftcdi3o75ka5hi6giwcrpzja.b32.i2p http://mat.i2p {
|
||||||
import https_redirect
|
import https_redirect
|
||||||
import gif_redirect
|
import gif_redirect
|
||||||
|
|
||||||
|
@ -90,11 +90,52 @@ http://matdoes.dev https://matdoes.dev http://matctazmu565vivubva3p3bulaneangiff
|
||||||
rewrite @txt_index /.txt
|
rewrite @txt_index /.txt
|
||||||
rewrite @txt {path}.txt
|
rewrite @txt {path}.txt
|
||||||
# rewrite /.txt to /index.txt
|
# rewrite /.txt to /index.txt
|
||||||
rewrite /.txt /index.txt
|
handle {
|
||||||
|
rewrite /.txt /index.txt
|
||||||
|
}
|
||||||
|
|
||||||
# make /index.html show different page
|
# make /index.html show different page
|
||||||
rewrite /index.html /index.htm
|
rewrite /index.html /index.htm
|
||||||
header /index.html Server nginx
|
header /index.html Server nginx
|
||||||
|
# i'm sobbing
|
||||||
|
rewrite /index.html/index.html /index.htm/index.htm
|
||||||
|
header /index.html/index.html Server caddy
|
||||||
|
# apache
|
||||||
|
rewrite /index.html/index.html/index.html /index.htm/index.htm/index.htm
|
||||||
|
header /index.html/index.html/index.html Server Apache
|
||||||
|
# openlitespeed
|
||||||
|
rewrite /index.html/index.html/index.html/index.html /index.htm/index.htm/index.htm/index.htm
|
||||||
|
header /index.html/index.html/index.html/index.html Server LiteSpeed
|
||||||
|
# lighttpd
|
||||||
|
rewrite /index.html/index.html/index.html/index.html/index.html /index.htm/index.htm/index.htm/index.htm/index.htm
|
||||||
|
header /index.html/index.html/index.html/index.html/index.html Server lighttpd
|
||||||
|
# microsoft iis
|
||||||
|
rewrite /index.html/index.html/index.html/index.html/index.html/index.html /index.htm/index.htm/index.htm/index.htm/index.htm/index.htm
|
||||||
|
header /index.html/index.html/index.html/index.html/index.html/index.html Server Microsoft-IIS
|
||||||
|
# tomcat
|
||||||
|
rewrite /index.html/index.html/index.html/index.html/index.html/index.html/index.html /index.htm/index.htm/index.htm/index.htm/index.htm/index.htm/index.htm
|
||||||
|
header /index.html/index.html/index.html/index.html/index.html/index.html/index.html Server Apache-Coyote
|
||||||
|
# jetty
|
||||||
|
rewrite /index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html /index.htm/index.htm/index.htm/index.htm/index.htm/index.htm/index.htm/index.htm
|
||||||
|
header /index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html Server Jetty
|
||||||
|
# aolserver
|
||||||
|
rewrite /index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html /index.htm/index.htm/index.htm/index.htm/index.htm/index.htm/index.htm/index.htm/index.htm
|
||||||
|
header /index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html Server AOLserver
|
||||||
|
# cherokee
|
||||||
|
rewrite /index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html /index.htm/index.htm/index.htm/index.htm/index.htm/index.htm/index.htm/index.htm/index.htm/index.htm
|
||||||
|
header /index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html Server Cherokee
|
||||||
|
# ibm http server
|
||||||
|
rewrite /index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html /index.htm/index.htm/index.htm/index.htm/index.htm/index.htm/index.htm/index.htm/index.htm/index.htm/index.htm
|
||||||
|
header /index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html Server IBM_HTTP_Server
|
||||||
|
# os x server
|
||||||
|
rewrite /index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html /index.htm/index.htm/index.htm/index.htm/index.htm/index.htm/index.htm/index.htm/index.htm/index.htm/index.htm/index.htm
|
||||||
|
header /index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html Server OS X Server
|
||||||
|
# raq 3
|
||||||
|
rewrite /index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html /index.htm/index.htm/index.htm/index.htm/index.htm/index.htm/index.htm/index.htm/index.htm/index.htm/index.htm/index.htm/index.htm
|
||||||
|
header /index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html Server RaQ 3
|
||||||
|
# last ones don't have a header
|
||||||
|
rewrite /index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html /index.htm/index.htm/index.htm/index.htm/index.htm/index.htm/index.htm/index.htm/index.htm/index.htm/index.htm/index.htm/index.htm/index.htm
|
||||||
|
rewrite /index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html /index.htm/index.htm/index.htm/index.htm/index.htm/index.htm/index.htm/index.htm/index.htm/index.htm/index.htm/index.htm/index.htm/index.htm/index.htm
|
||||||
|
|
||||||
# don't require .html
|
# don't require .html
|
||||||
try_files {path} {path}.html
|
try_files {path} {path}.html
|
||||||
|
@ -105,6 +146,7 @@ http://matdoes.dev https://matdoes.dev http://matctazmu565vivubva3p3bulaneangiff
|
||||||
# advertise onion site in headers
|
# advertise onion site in headers
|
||||||
@website host matdoes.dev
|
@website host matdoes.dev
|
||||||
header @website Onion-Location http://matctazmu565vivubva3p3bulaneangiff47xmnezzjx2nuinwjoxjyd.onion{path}
|
header @website Onion-Location http://matctazmu565vivubva3p3bulaneangiff47xmnezzjx2nuinwjoxjyd.onion{path}
|
||||||
|
header @website X-I2P-Location http://matcta5umrjruf3t5gzspk2fumdsftcdi3o75ka5hi6giwcrpzja.b32.i2p{path}
|
||||||
|
|
||||||
log {
|
log {
|
||||||
output file /var/log/caddy/matdoes.dev.log
|
output file /var/log/caddy/matdoes.dev.log
|
||||||
|
@ -174,6 +216,9 @@ http://matdoes.dev https://matdoes.dev http://matctazmu565vivubva3p3bulaneangiff
|
||||||
rewrite /
|
rewrite /
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
route /qotd {
|
||||||
|
reverse_proxy 127.0.0.1:6758
|
||||||
|
}
|
||||||
|
|
||||||
handle_errors 400 {
|
handle_errors 400 {
|
||||||
respond "🐟"
|
respond "🐟"
|
||||||
|
@ -201,6 +246,12 @@ http://matdoes.dev https://matdoes.dev http://matctazmu565vivubva3p3bulaneangiff
|
||||||
rewrite @should_be_404 /404.html
|
rewrite @should_be_404 /404.html
|
||||||
file_server @is_not_451
|
file_server @is_not_451
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@PAT method PAT
|
||||||
|
handle @PAT {
|
||||||
|
respond "meow :3
|
||||||
|
"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
staging.matdoes.dev {
|
staging.matdoes.dev {
|
||||||
|
@ -266,13 +317,21 @@ matrix.matdoes.dev matrix.matdoes.dev:8448 {
|
||||||
header content-type application/json
|
header content-type application/json
|
||||||
respond "{\"m.server\":\"matrix.matdoes.dev\"}"
|
respond "{\"m.server\":\"matrix.matdoes.dev\"}"
|
||||||
}
|
}
|
||||||
handle /.well-known/matrix/client {
|
handle /mautrix-discord/* {
|
||||||
reverse_proxy 127.0.0.1:81
|
reverse_proxy 127.0.0.1:6168
|
||||||
}
|
}
|
||||||
|
handle /irc-media/* {
|
||||||
|
reverse_proxy 127.0.0.1:11111
|
||||||
|
}
|
||||||
|
|
||||||
handle {
|
handle {
|
||||||
reverse_proxy 127.0.0.1:6167
|
reverse_proxy 127.0.0.1:6167
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
discord-media.matdoes.dev discord-media.matdoes.dev:8448 {
|
||||||
|
# for mautrix-discord direct media access
|
||||||
|
reverse_proxy 127.0.0.1:6168
|
||||||
|
}
|
||||||
|
|
||||||
stats.matrix.matdoes.dev {
|
stats.matrix.matdoes.dev {
|
||||||
log
|
log
|
||||||
|
@ -319,12 +378,12 @@ mail.matdoes.dev {
|
||||||
respond "mat's mail server :)"
|
respond "mat's mail server :)"
|
||||||
}
|
}
|
||||||
|
|
||||||
matdoes.dev. {
|
#matdoes.dev. {
|
||||||
log
|
# log
|
||||||
# tls /home/caddy/.local/share/caddy/certificates/acme-v02.api.letsencrypt.org-directory/matdoes.dev/matdoes.dev.crt /home/caddy/.local/share/caddy/certificates/acme-v02.api.letsencrypt.org-directory/matdoes.dev/matdoes.dev.key
|
# tls /home/caddy/.local/share/caddy/certificates/acme-v02.api.letsencrypt.org-directory/matdoes.dev/matdoes.dev.crt /home/caddy/.local/share/caddy/certificates/acme-v02.api.letsencrypt.org-directory/matdoes.dev/matdoes.dev.key
|
||||||
|
|
||||||
respond "meow"
|
# respond "meow"
|
||||||
}
|
#}
|
||||||
|
|
||||||
jmap.matdoes.dev {
|
jmap.matdoes.dev {
|
||||||
log {
|
log {
|
||||||
|
|
|
@ -74,7 +74,7 @@
|
||||||
<br />
|
<br />
|
||||||
For an explanation about how to use an FTP application to transfer
|
For an explanation about how to use an FTP application to transfer
|
||||||
content to your server, please </font
|
content to your server, please </font
|
||||||
><a href="/raq3/.cobalt/help/ftpSite.html"
|
><a href="/.cobalt/help/ftpSite.html"
|
||||||
><font size="2" face="Helvetica, Arial">click here</font></a
|
><font size="2" face="Helvetica, Arial">click here</font></a
|
||||||
><font size="2" face="Helvetica, Arial">.</font>
|
><font size="2" face="Helvetica, Arial">.</font>
|
||||||
</td>
|
</td>
|
||||||
|
|
Loading…
Add table
Reference in a new issue