User avatar
penny
@penny@popbob.wtf
@fiore @rose if you still need it (i.e. to fix the oauth page looking like shit) here's my config

akko.popbob.wtf {
@redir {
path /oauth/*
path /api/*
path /nodeinfo/*
}

handle
@redir {
reverse_proxy * http://[CHANGE TO YOUR CONTAINER]:4000
encode zstd gzip
}

redir /oauth/authorize* https://[CHANGE TO YOUR DOMAIN]{uri}

handle {
header Cache-Control "max-age=3600"
try_files {path} /
root * [FE location]
encode zstd gzip
file_server
}

handle_path /static/* {
header Cache-Control "max-age=3600"
root * [FE location]/static
encode zstd gzip
file_server
}

handle_path /favicon.png {
redir https://[CHANGE TO YOUR FE'S DOMAIN]/static/favicon.png
}
}