1. Output of caddy version
:
v2.5.2 h1:eCJdLyEyAGzuQTa5Mh3gETnYWDClo1LjtQm2q9RNZrs=
2. How I run Caddy:
a. System environment:
Oracle Linux Server 8.6 aarch64 on Oracle Cloud
b. Command:
caddy start
and subsequently after editing the caddyfile
caddy reload
c. Service/unit/compose file:
Just running caddy start in the directory with my caddyfile
d. My complete Caddy config:
roanv.nl {
#tls /etc/ssl/certs/certificate.pem /etc/ssl/private/key.pem
respond "Nothing to see here, move along!"
}
pl3xmap.roanv.nl {
root * /mnt/data/purpur/plugins/Pl3xMap/web
file_server
}
3. The problem I’m having:
Bit of a weird issue, hard to explain as well
Bit of background first:
I am trying to serve files from a few different map viewers, main one being https://pl3xmap.roanv.nl/
Pl3xmap renders it’s own maps and outputs the data (including webpage) to a web folder
It includes it’s own internal webserver to show this rendered data.
Notice how those coordinates at the bottom are completely broken, same thing for the data in the bottom left.
4. Error messages and/or full log output:
No errors from caddy, site loads (and works) fine except this specific issue
Firefox error:
Uncaught (in promise) SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
Chrome error:
Uncaught (in promise) SyntaxError: Unexpected token '', "� �"... is not valid JSON
5. What I already tried:
I shot the pl3xmap developer a message, they responded with:
your server doesn't seem to support gzip, its reading the raw binary from the .gz files instead of decompressing them
It looks like Caddy is failing to render a few .gz files that supply that specific data to the web frontend.
(Probaby less relevant, but some info on those files: Pl3xMap File Protocol · BillyGalbreath/Pl3xMap Wiki · GitHub )
This does work when I simply reverse-proxy pl3xmaps internal webserver through caddy
I did see the precompressed
file-server
& encode
directives, I don’t think they are relevant here though.
Nevertheless, I did give them a try, no dice.
tbh, I’m pretty stumped on this issue
Edit:
I did of course search through these forums and google/ddg for related issues, most things I found seemed severely outdated or not applicable to this issue though.