add akkofe for mastodon

This commit is contained in:
Ruben 2025-09-25 10:15:09 -05:00
commit 318a434baa
Signed by: sneexy
GPG key ID: 8ECFA045E63BC583
2 changed files with 53 additions and 9 deletions

View file

@ -1,5 +1,4 @@
# akkoma fe for iceshrimp
# (ONLY iceshrimp, not compatible with any other instance)
akko.beeping.synth.download {
# redirect api endpoints to iceshrimp
@redir {
@ -23,13 +22,53 @@ akko.beeping.synth.download {
handle {
header Cache-Control "max-age=3600"
try_files {path} /
root * /var/www/fedi-frontends/akkoma-fe
root * /var/www/fedi-frontends/akkoma-fe-iceshrimp
file_server
import common-settings
}
handle_path /static/* {
header Cache-Control "max-age=3600"
root * /var/www/fedi-frontends/akkoma-fe/static
root * /var/www/fedi-frontends/akkoma-fe-iceshrimp/static
file_server
import common-settings
}
import common-settings
import log akkofe
import robots-txt
}
# akkoma fe for mastodon
akko.merping.synth.download {
# redirect api endpoints to iceshrimp
@redir {
path /oauth/*
path /api/*
path /nodeinfo/*
}
handle @redir {
reverse_proxy http://192.168.1.73:58834
import common-settings
}
# favicon
handle_path /favicon.png {
root * /var/www/site/assets/synth.download/synth.png
file_server
import common-settings
}
# akkoma frontend
handle {
header Cache-Control "max-age=3600"
try_files {path} /
root * /var/www/fedi-frontends/akkoma-fe-chuckya
file_server
import common-settings
}
handle_path /static/* {
header Cache-Control "max-age=3600"
root * /var/www/fedi-frontends/akkoma-fe-chuckya/static
file_server
import common-settings
}