auth.thesatelliteoflove.com {
    reverse_proxy authentik-server-1:9000
}

paper.thesatelliteoflove.com {
    reverse_proxy paperlessngx-webserver-1:8000
}

cal.thesatelliteoflove.com {
    redir /.well-known/caldav /dav.php 302
    redir /.well-known/carddav /dav.php 302
    reverse_proxy baikal-baikal-1:80
}

books.thesatelliteoflove.com {
    reverse_proxy authentik-server-1:9000
}

audio.thesatelliteoflove.com {
    reverse_proxy audiobookshelf-audiobookshelf-1:80
}

loclog.thesatelliteoflove.com {
    reverse_proxy dawarich_app:3000
}

watcher.thesatelliteoflove.com {
    reverse_proxy changedetection:5000
}

snippets.thesatelliteoflove.com {
    reverse_proxy bytestash:5000
}

git.thesatelliteoflove.com {
    reverse_proxy gitea:3000
}

thesatelliteoflove.com {
    reverse_proxy /micropub/* micropub_server-micropub-1:5000
    reverse_proxy /micropub micropub_server-micropub-1:5000
    root * /srv/tsol
    file_server
}

bookmarks.thesatelliteoflove.com {
    reverse_proxy hoarder-web-1:3000
}

social.thesatelliteoflove.com {
    reverse_proxy gotosocial:8080
}

models.thesatelliteoflove.com {
    reverse_proxy manyfold-app-1:3214
}


home.thesatelliteoflove.com {
    reverse_proxy authentik-server-1:9000
}

gotify.thesatelliteoflove.com {
    reverse_proxy gotify:80
}

gotify-assistant.thesatelliteoflove.com {
    reverse_proxy igotify-assistant:8080
}

pdg.thesatelliteoflove.com {
    root * /srv/pdg
    try_files {path} {path}.html {path}/ =404
    file_server
    encode gzip
 
    handle_errors {
        rewrite * /{err.status_code}.html
        file_server
    }
}

repair.nerder.land {
    root * /srv/repair
    file_server
}

nerder.land {
    root * /srv/nerderland
    file_server
}

forms.nerder.land {
    reverse_proxy heyform-heyform-1:8000
}
