1. Caddy version (caddy version
):
Latest ofcourse
v2.0.0 h1:pQSaIJGFluFvu8KDGDODV8u4/QRED/OPyIR+MWYYse8=
2. How I run Caddy:
with Systemd
a. System environment:
CentOS Linux release 7.7.1908 (Core)
b. Command:
systemd start caddy
c. Service/unit/compose file:
cat /etc/systemd/system/caddy.service
[Unit]
Description=Caddy
Documentation=https://caddyserver.com/docs/
After=network.target
[Service]
User=root
Group=root
ExecStart=/usr/bin/caddy run --config /home/eportal/Caddyfile
ExecReload=/usr/bin/caddy reload --config /home/eportal/Caddyfile
TimeoutStopSec=5s
LimitNOFILE=1048576
LimitNPROC=512
PrivateTmp=true
ProtectSystem=full
AmbientCapabilities=CAP_NET_BIND_SERVICE
[Install]
WantedBy=multi-user.target
d. My complete Caddyfile or JSON config:
{
experimental_http3
}
eportal.skilnet.no {
root * /home/eportal/production/current/public
try_files {path} /index.php?{query}
php_fastcgi 127.0.0.1:9000
file_server
@notMeasure {
not path /api/nefle_video/measure*
}
encode @notMeasure gzip zstd
}
3. The problem I’m having:
any requests to https://eportal.skilnet.no/api/nefle_video/measure?module=download is gzip encoded, but it’s not supposed to be encoded, I want this url to be raw content…
4. Error messages and/or full log output:
- Logs begin at fr. 2018-05-18 10:15:54 CEST. --
mai 11 16:36:43 vps.skilnet.no caddy[23625]: 2020/05/11 16:36:43 [DEBUG] Fake-closing underlying packet conn
mai 11 16:36:43 vps.skilnet.no caddy[23625]: 2020/05/11 16:36:43 [INFO][cache:0xc0003eae10] Stopped certificate maintenance routine
mai 11 16:36:43 vps.skilnet.no caddy[23625]: {"level":"info","ts":1589207803.648101,"msg":"autosaved config","file":"/root/.config/caddy/autosave.json"}
mai 11 16:36:43 vps.skilnet.no caddy[23625]: {"level":"info","ts":1589207803.6481125,"logger":"admin.api","msg":"load complete"}
mai 11 16:36:44 vps.skilnet.no caddy[23625]: {"level":"info","ts":1589207804.1475358,"logger":"admin","msg":"stopped previous server"}
mai 11 16:41:11 vps.skilnet.no caddy[23625]: {"level":"info","ts":1589208071.913783,"logger":"admin.api","msg":"received request","method":"POST","host":"localhost:2019","uri":"/load","remote_addr":"127.0.0.1:60324","headers":{"Accept-Encoding":["gzip"],"Content-Length":["1361"],"Content-Type":["application/json"],"Origin":["localhost:2019"],"User-Agent":["Go-http-client/1.1"]}}
mai 11 16:41:11 vps.skilnet.no caddy[23625]: {"level":"info","ts":1589208071.9140646,"logger":"admin.api","msg":"config is unchanged"}
mai 11 16:41:11 vps.skilnet.no caddy[23625]: {"level":"info","ts":1589208071.9140725,"logger":"admin.api","msg":"load complete"}
mai 11 16:42:26 vps.skilnet.no caddy[23625]: 2020/05/11 16:42:26 http: TLS handshake error from 104.199.36.222:20014: no certificate available for '10.19.0.5'
mai 11 16:47:04 vps.skilnet.no caddy[23625]: 2020/05/11 16:47:04 http: TLS handshake error from 198.108.66.204:33878: no certificate available for '46.101.126.224'
5. What I already tried:
Reading the documentation, trying different paths (I only tried measure as well as the current one, but no success)
6. Links to relevant resources:
…