Inserting Rocket Chat into Caddyfile correctly

1. The problem I’m having:

Good Morning everyone –

I am new to Caddy and it’s been great!!

My Caddyfile breaks when I enter the chat.naff.casa line to use for RocketChat.

I have spent a lot of time googling this and am not sure why it breaks and what the remidy is to get it working.

2. Error messages and/or full log output:

PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.

3. Caddy version:

4. How I installed and ran Caddy:

a. System environment:

Ubuntu/Docker-compose

b. Command:

docker-compose up -d

c. Service/unit/compose file:

services:
        caddy:
                container_name: caddy
                image: caddy:latest
                restart: unless-stopped
                ports:
                        - "80:80"
                        - "443:443"
                volumes:
                        - /docker/caddy/Caddyfile:/etc/caddy/Caddyfile
                        - /docker/caddy/data:/data
                        - /docker/caddy/srv:/srv
                        - /docker/caddy/config:/config
                networks:
                        - t2_proxy
networks:
  t2_proxy:
    external: true

d. My complete Caddy config:

}
recipes.naff.casa {
        reverse_proxy 192.168.1.157:8081
}
request.naff.casa {
        reverse_proxy 192.168.1.157:5055
}
share.naff.casa {
        reverse_proxy 192.168.1.157:6969/pwndrop
}
paste.naff.casa {
        reverse_proxy 192.168.1.213:8080
}
remote.naff.casa {
        reverse_proxy 192.168.1.213:6969
}
www.naff.casa {
        redir https://naff.casa{uri}
}
naff.casa
        reverse_proxy 192.168.1.213:3344
}
sonarr.naff.casa {
        reverse_proxy 192.168.1.157:8989
}
radarr.naff.casa {
        reverse_proxy 192.168.1.157:7878
}
chat.naff.casa {
        reverse_proxy localhost:3000
        header Access-Control-Allow-Methods "POST, GET, OPTIONS"
        header Access-Control-Allow-Headers "*"
        import cors https://sub.domain.livechat
}
cctv.naff.casa {
        reverse_proxy 192.168.1.159:8123
}
jellyfin.naff.casa {
        reverse_proxy 192.168.1.157:8096
}
fleet.naff.casa {
        reverse_proxy 192.168.1.213:8484
}
notes.naff.casa {
        reverse_proxy 192.168.1.213:6875
}
prox.naff.casa {
        reverse_proxy 192.168.1.208:8006 {
                transport http {
                        tls_insecure_skip_verify
                }
        }
}
pbs.naff.casa {
        reverse_proxy 192.168.1.230:8007 {
                transport http {
                        tls_insecure_skip_verify
                }
        }
}

5. Links to relevant resources:

My caddy setup has been working really well but the minute I insert my rocket.chat code, it breaks.

I’m sure it’s a formatting issue or I just need to change it a bit but I am not sure what change to make.

Any help will be much appreciated!

Are you sure that’s your config? That looks like the same domain and config as another user from the forums:

I got locked out of my other account, LOL

had to create an account using my wife’s email.

@francislavoie you’ve helped me so many times now that you know my FQDN hahaha

1 Like

lmao ok

Well, elaborate. What does “breaks” mean? Show the errors you get. Don’t assume we can imagine what you see. Show your Caddy logs. Show an example request with curl -v. You skipped those parts of the help template.

I said this before on a previous thread. This is invalid syntax, you can’t have a path in an upstream address. Remove the /pwndrop part.

1 Like

I removed the /pwndrp – I missed your request on a previous thread to remove, my fault.

By breaks, I mean that my Caddy server no longer operates correctly and I cannot connect to any of my services being hosted.

I assumed that it’s because of the Rocket chat entry I’ve made because once I remove that entry (chat.naff.casa), and restart Caddy, all of my services return and everything is normal.

if I replicate the issue, it disconnects a few of my services that are fairly important (especially at bedtime, jellyfin etc LOL).

I’ll try it again tomorrow some time that is less obstructive.

Okay but again, that means nothing. What error do you see? We need specifics. Show the actual evidence. Show your logs.

here’ an oput of caddy logs when I try to use the Caddyfile listed in this thread.


{"level":"error","ts":1710038090.5525842,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","upstream":"192.168.1.213:3344","duration":0.702425301,"request":{"remote_ip":"5.2.76.123","remote_port":"39518","client_ip":"5.2.76.123","proto":"HTTP/1.1","method":"GET","host":"naff.casa","uri":"/.well-known/matrix/server","headers":{"User-Agent":["Synapse/1.99.0"],"X-Forwarded-For":["5.2.76.123"],"X-Forwarded-Proto":["https"],"X-Forwarded-Host":["naff.casa"]},"tls":{"resumed":false,"version":772,"cipher_suite":4867,"proto":"","server_name":"naff.casa"}},"error":"reading: context canceled"}
{"level":"error","ts":1710038311.8953118,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","upstream":"192.168.1.213:3344","duration":0.800454059,"request":{"remote_ip":"5.9.100.88","remote_port":"56404","client_ip":"5.9.100.88","proto":"HTTP/1.1","method":"GET","host":"naff.casa","uri":"/.well-known/matrix/server","headers":{"User-Agent":["Synapse/1.90.0"],"X-Forwarded-For":["5.9.100.88"],"X-Forwarded-Proto":["https"],"X-Forwarded-Host":["naff.casa"]},"tls":{"resumed":false,"version":772,"cipher_suite":4867,"proto":"","server_name":"naff.casa"}},"error":"reading: context canceled"}
{"level":"info","ts":1710038322.5857344,"msg":"shutting down apps, then terminating","signal":"SIGTERM"}
{"level":"warn","ts":1710038322.585822,"msg":"exiting; byeee!! 👋","signal":"SIGTERM"}
{"level":"info","ts":1710038322.5858855,"logger":"http","msg":"servers shutting down with eternal grace period"}
{"level":"info","ts":1710038377.2377167,"msg":"using provided configuration","config_file":"/etc/caddy/Caddyfile","config_adapter":"caddyfile"}
{"level":"warn","ts":1710038377.2469206,"msg":"Caddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistencies","adapter":"caddyfile","file":"/etc/caddy/Caddyfile","line":6}
{"level":"info","ts":1710038377.2605033,"logger":"admin","msg":"admin endpoint started","address":"localhost:2019","enforce_origin":false,"origins":["//127.0.0.1:2019","//localhost:2019","//[::1]:2019"]}
{"level":"info","ts":1710038377.2625992,"logger":"http.auto_https","msg":"server is listening only on the HTTPS port but has no TLS connection policies; adding one to enable TLS","server_name":"srv0","https_port":443}
{"level":"info","ts":1710038377.2626686,"logger":"http.auto_https","msg":"enabling automatic HTTP->HTTPS redirects","server_name":"srv0"}
{"level":"info","ts":1710038377.2656052,"logger":"tls.cache.maintenance","msg":"started background certificate maintenance","cache":"0xc0001bc000"}
{"level":"info","ts":1710038377.2670422,"logger":"http","msg":"enabling HTTP/3 listener","addr":":443"}
{"level":"info","ts":1710038377.3001842,"msg":"failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 416 kiB). See https://github.com/quic-go/quic-go/wiki/UDP-Buffer-Sizes for details."}
{"level":"info","ts":1710038377.3024933,"logger":"http.log","msg":"server running","name":"srv0","protocols":["h1","h2","h3"]}
{"level":"info","ts":1710038377.3027267,"logger":"http.log","msg":"server running","name":"remaining_auto_https_redirects","protocols":["h1","h2","h3"]}
{"level":"info","ts":1710038377.302826,"logger":"http","msg":"enabling automatic TLS certificate management","domains":["naff.casa","www.naff.casa","recipes.naff.casa","pbs.naff.casa","share.naff.casa","notes.naff.casa","sonarr.naff.casa","jellyfin.naff.casa","paste.naff.casa","prox.naff.casa","radarr.naff.casa","cctv.naff.casa","remote.naff.casa","fleet.naff.casa","request.naff.casa"]}
{"level":"warn","ts":1710038377.361569,"logger":"tls","msg":"storage cleaning happened too recently; skipping for now","storage":"FileStorage:/data/caddy","instance":"1eefd7be-e50c-47b6-8ac4-ba2293c49bab","try_again":1710124777.3615606,"try_again_in":86399.99999804}
{"level":"info","ts":1710038377.3619325,"logger":"tls","msg":"finished cleaning storage units"}
{"level":"info","ts":1710038378.7656298,"msg":"autosaved config (load with --resume flag)","file":"/config/caddy/autosave.json"}
{"level":"info","ts":1710038378.765692,"msg":"serving initial configuration"}
{"level":"error","ts":1710038379.5077343,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","upstream":"192.168.1.213:3344","duration":1.073064413,"request":{"remote_ip":"66.44.32.139","remote_port":"58996","client_ip":"66.44.32.139","proto":"HTTP/1.1","method":"GET","host":"naff.casa","uri":"/.well-known/matrix/server","headers":{"X-Forwarded-Host":["naff.casa"],"User-Agent":["Synapse/1.98.0"],"X-Forwarded-For":["66.44.32.139"],"X-Forwarded-Proto":["https"]},"tls":{"resumed":false,"version":772,"cipher_suite":4867,"proto":"","server_name":"naff.casa"}},"error":"reading: context canceled"}
{"level":"error","ts":1710040682.3930779,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","upstream":"192.168.1.213:3344","duration":0.647428279,"request":{"remote_ip":"206.189.191.137","remote_port":"52268","client_ip":"206.189.191.137","proto":"HTTP/1.1","method":"GET","host":"naff.casa","uri":"/.well-known/matrix/server","headers":{"User-Agent":["Synapse/1.90.0"],"X-Forwarded-For":["206.189.191.137"],"X-Forwarded-Proto":["https"],"X-Forwarded-Host":["naff.casa"]},"tls":{"resumed":false,"version":772,"cipher_suite":4867,"proto":"","server_name":"naff.casa"}},"error":"reading: context canceled"}
{"level":"error","ts":1710040839.7711787,"logger":"tls","msg":"tls-alpn challenge","remote_addr":"104.156.155.30:55218","server_name":"","error":"no information found to solve challenge for identifier: "}
{"level":"error","ts":1710041063.5822608,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","upstream":"192.168.1.213:3344","duration":0.654548092,"request":{"remote_ip":"92.63.173.236","remote_port":"34868","client_ip":"92.63.173.236","proto":"HTTP/1.1","method":"GET","host":"naff.casa","uri":"/.well-known/matrix/server","headers":{"User-Agent":["Synapse/1.90.0"],"X-Forwarded-For":["92.63.173.236"],"X-Forwarded-Proto":["https"],"X-Forwarded-Host":["naff.casa"]},"tls":{"resumed":false,"version":772,"cipher_suite":4867,"proto":"","server_name":"naff.casa"}},"error":"reading: context canceled"}
{"level":"error","ts":1710041095.0769587,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","upstream":"192.168.1.213:3344","duration":0.657014819,"request":{"remote_ip":"5.2.76.123","remote_port":"46426","client_ip":"5.2.76.123","proto":"HTTP/1.1","method":"GET","host":"naff.casa","uri":"/.well-known/matrix/server","headers":{"User-Agent":["Synapse/1.99.0"],"X-Forwarded-For":["5.2.76.123"],"X-Forwarded-Proto":["https"],"X-Forwarded-Host":["naff.casa"]},"tls":{"resumed":false,"version":772,"cipher_suite":4867,"proto":"","server_name":"naff.casa"}},"error":"reading: context canceled"}
{"level":"error","ts":1710042339.5014012,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","upstream":"192.168.1.157:8096","duration":0.05878097,"request":{"remote_ip":"192.168.1.1","remote_port":"19296","client_ip":"192.168.1.1","proto":"HTTP/1.1","method":"GET","host":"jellyfin.naff.casa","uri":"/Videos/1887bf0680602caf3037ca46aeee451b/stream?mediaSourceId=1887bf0680602caf3037ca46aeee451b&minSegments=6&playSessionId=ebd7bc993e44484ba162e0692abe686f&static=true","headers":{"Range":["bytes=0-"],"Accept":["*/*"],"Accept-Language":["en_US"],"User-Agent":["VLC/3.0.18 LibVLC/3.0.18"],"X-Forwarded-For":["192.168.1.1"],"X-Forwarded-Proto":["https"],"X-Forwarded-Host":["jellyfin.naff.casa"]},"tls":{"resumed":false,"version":771,"cipher_suite":49195,"proto":"","server_name":"jellyfin.naff.casa"}},"error":"writing: write tcp 172.18.0.2:443->192.168.1.1:19296: write: connection reset by peer"}
{"level":"error","ts":1710042626.723634,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","upstream":"192.168.1.157:8096","duration":0.005619343,"request":{"remote_ip":"192.168.1.1","remote_port":"57237","client_ip":"192.168.1.1","proto":"HTTP/1.1","method":"GET","host":"jellyfin.naff.casa","uri":"/Videos/1887bf0680602caf3037ca46aeee451b/stream?mediaSourceId=1887bf0680602caf3037ca46aeee451b&minSegments=6&playSessionId=ebd7bc993e44484ba162e0692abe686f&static=true","headers":{"If-Unmodified-Since":["Wed, 21 Feb 2024 01:33:00 GMT"],"Range":["bytes=104-"],"X-Forwarded-For":["192.168.1.1"],"X-Forwarded-Proto":["https"],"X-Forwarded-Host":["jellyfin.naff.casa"],"Accept":["*/*"],"Accept-Language":["en_US"],"User-Agent":["VLC/3.0.18 LibVLC/3.0.18"]},"tls":{"resumed":false,"version":771,"cipher_suite":49195,"proto":"","server_name":"jellyfin.naff.casa"}},"error":"writing: write tcp 172.18.0.2:443->192.168.1.1:57237: write: connection reset by peer"}
{"level":"info","ts":1710042801.3652372,"msg":"shutting down apps, then terminating","signal":"SIGTERM"}

here’s more from the log, it won’t let me paste the entire thing.

y=ca83aeb9964640c5b83cf91c8d708809&Tag=9bea822556cadd87690969b25712abbe","headers":{"X-Forwarded-Host":["jellyfin.naff.casa"],"User-Agent":["Mozilla/5.0 (Linux; Android 13; T608M Build/TP1A.220624.014; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/122.0.6261.64 Mobile Safari/537.36"],"Sec-Fetch-Mode":["cors"],"Sec-Ch-Ua":["\"Chromium\";v=\"122\", \"Not(A:Brand\";v=\"24\", \"Android WebView\";v=\"122\""],"Sec-Ch-Ua-Platform":["\"Android\""],"Sec-Fetch-Dest":["video"],"Range":["bytes=242778112-"],"Accept-Language":["en-US,en;q=0.9"],"Sec-Fetch-Site":["same-origin"],"Accept-Encoding":["identity;q=1, *;q=0"],"X-Forwarded-Proto":["https"],"Sec-Ch-Ua-Mobile":["?1"],"Accept":["*/*"],"X-Requested-With":["org.jellyfin.mobile"],"X-Forwarded-For":["192.168.1.1"]},"tls":{"resumed":true,"version":772,"cipher_suite":4867,"proto":"h2","server_name":"jellyfin.naff.casa"}},"error":"writing: http2: stream closed"}
{"level":"error","ts":1710036945.11002,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","upstream":"192.168.1.157:8096","duration":0.008951111,"request":{"remote_ip":"192.168.1.1","remote_port":"20945","client_ip":"192.168.1.1","proto":"HTTP/2.0","method":"GET","host":"jellyfin.naff.casa","uri":"/Videos/0372af21826221a1d33aa51378fc8e77/stream.mp4?Static=true&mediaSourceId=0372af21826221a1d33aa51378fc8e77&deviceId=042351b2484da4e9&api_key=ca83aeb9964640c5b83cf91c8d708809&Tag=9bea822556cadd87690969b25712abbe","headers":{"Sec-Ch-Ua-Mobile":["?1"],"Sec-Fetch-Mode":["cors"],"Sec-Fetch-Dest":["video"],"X-Forwarded-Proto":["https"],"Sec-Ch-Ua":["\"Chromium\";v=\"122\", \"Not(A:Brand\";v=\"24\", \"Android WebView\";v=\"122\""],"If-Range":["Sun, 21 Jan 2024 17:29:22 GMT"],"X-Forwarded-Host":["jellyfin.naff.casa"],"User-Agent":["Mozilla/5.0 (Linux; Android 13; T608M Build/TP1A.220624.014; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/122.0.6261.64 Mobile Safari/537.36"],"Sec-Ch-Ua-Platform":["\"Android\""],"X-Forwarded-For":["192.168.1.1"],"X-Requested-With":["org.jellyfin.mobile"],"Accept-Language":["en-US,en;q=0.9"],"Range":["bytes=0-1586135039"],"Accept-Encoding":["identity;q=1, *;q=0"],"Accept":["*/*"],"Sec-Fetch-Site":["same-origin"]},"tls":{"resumed":true,"version":772,"cipher_suite":4867,"proto":"h2","server_name":"jellyfin.naff.casa"}},"error":"writing: http2: stream closed"}
{"level":"error","ts":1710036959.449874,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","upstream":"192.168.1.157:8096","duration":0.007568321,"request":{"remote_ip":"192.168.1.1","remote_port":"20945","client_ip":"192.168.1.1","proto":"HTTP/2.0","method":"GET","host":"jellyfin.naff.casa","uri":"/Videos/0372af21826221a1d33aa51378fc8e77/stream.mp4?Static=true&mediaSourceId=0372af21826221a1d33aa51378fc8e77&deviceId=042351b2484da4e9&api_key=ca83aeb9964640c5b83cf91c8d708809&Tag=9bea822556cadd87690969b25712abbe","headers":{"Accept-Language":["en-US,en;q=0.9"],"Accept-Encoding":["identity;q=1, *;q=0"],"Sec-Ch-Ua-Mobile":["?1"],"Sec-Fetch-Dest":["video"],"X-Forwarded-For":["192.168.1.1"],"Sec-Ch-Ua":["\"Chromium\";v=\"122\", \"Not(A:Brand\";v=\"24\", \"Android WebView\";v=\"122\""],"Sec-Ch-Ua-Platform":["\"Android\""],"X-Forwarded-Host":["jellyfin.naff.casa"],"Accept":["*/*"],"X-Forwarded-Proto":["https"],"Sec-Fetch-Mode":["cors"],"User-Agent":["Mozilla/5.0 (Linux; Android 13; T608M Build/TP1A.220624.014; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/122.0.6261.64 Mobile Safari/537.36"],"X-Requested-With":["org.jellyfin.mobile"],"Range":["bytes=303071232-1586428476"],"If-Range":["Sun, 21 Jan 2024 17:29:22 GMT"],"Sec-Fetch-Site":["same-origin"]},"tls":{"resumed":true,"version":772,"cipher_suite":4867,"proto":"h2","server_name":"jellyfin.naff.casa"}},"error":"writing: http2: stream closed"}
{"level":"error","ts":1710037601.7101982,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","upstream":"192.168.1.213:3344","duration":1.040313098,"request":{"remote_ip":"206.189.191.137","remote_port":"46288","client_ip":"206.189.191.137","proto":"HTTP/1.1","method":"GET","host":"naff.casa","uri":"/.well-known/matrix/server","headers":{"User-Agent":["Synapse/1.90.0"],"X-Forwarded-For":["206.189.191.137"],"X-Forwarded-Proto":["https"],"X-Forwarded-Host":["naff.casa"]},"tls":{"resumed":false,"version":772,"cipher_suite":4867,"proto":"","server_name":"naff.casa"}},"error":"reading: context canceled"}
{"level":"error","ts":1710038090.5525842,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","upstream":"192.168.1.213:3344","duration":0.702425301,"request":{"remote_ip":"5.2.76.123","remote_port":"39518","client_ip":"5.2.76.123","proto":"HTTP/1.1","method":"GET","host":"naff.casa","uri":"/.well-known/matrix/server","headers":{"User-Agent":["Synapse/1.99.0"],"X-Forwarded-For":["5.2.76.123"],"X-Forwarded-Proto":["https"],"X-Forwarded-Host":["naff.casa"]},"tls":{"resumed":false,"version":772,"cipher_suite":4867,"proto":"","server_name":"naff.casa"}},"error":"reading: context canceled"}
{"level":"error","ts":1710038311.8953118,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","upstream":"192.168.1.213:3344","duration":0.800454059,"request":{"remote_ip":"5.9.100.88","remote_port":"56404","client_ip":"5.9.100.88","proto":"HTTP/1.1","method":"GET","host":"naff.casa","uri":"/.well-known/matrix/server","headers":{"User-Agent":["Synapse/1.90.0"],"X-Forwarded-For":["5.9.100.88"],"X-Forwarded-Proto":["https"],"X-Forwarded-Host":["naff.casa"]},"tls":{"resumed":false,"version":772,"cipher_suite":4867,"proto":"","server_name":"naff.casa"}},"error":"reading: context canceled"}
{"level":"info","ts":1710038322.5857344,"msg":"shutting down apps, then terminating","signal":"SIGTERM"}
{"level":"warn","ts":1710038322.585822,"msg":"exiting; byeee!! 👋","signal":"SIGTERM"}
{"level":"info","ts":1710038322.5858855,"logger":"http","msg":"servers shutting down with eternal grace period"}
{"level":"info","ts":1710038377.2377167,"msg":"using provided configuration","config_file":"/etc/caddy/Caddyfile","config_adapter":"caddyfile"}
{"level":"warn","ts":1710038377.2469206,"msg":"Caddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistencies","adapter":"caddyfile","file":"/etc/caddy/Caddyfile","line":6}
{"level":"info","ts":1710038377.2605033,"logger":"admin","msg":"admin endpoint started","address":"localhost:2019","enforce_origin":false,"origins":["//127.0.0.1:2019","//localhost:2019","//[::1]:2019"]}
{"level":"info","ts":1710038377.2625992,"logger":"http.auto_https","msg":"server is listening only on the HTTPS port but has no TLS connection policies; adding one to enable TLS","server_name":"srv0","https_port":443}
{"level":"info","ts":1710038377.2626686,"logger":"http.auto_https","msg":"enabling automatic HTTP->HTTPS redirects","server_name":"srv0"}
{"level":"info","ts":1710038377.2656052,"logger":"tls.cache.maintenance","msg":"started background certificate maintenance","cache":"0xc0001bc000"}
{"level":"info","ts":1710038377.2670422,"logger":"http","msg":"enabling HTTP/3 listener","addr":":443"}
{"level":"info","ts":1710038377.3001842,"msg":"failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 416 kiB). See https://github.com/quic-go/quic-go/wiki/UDP-Buffer-Sizes for details."}
{"level":"info","ts":1710038377.3024933,"logger":"http.log","msg":"server running","name":"srv0","protocols":["h1","h2","h3"]}
{"level":"info","ts":1710038377.3027267,"logger":"http.log","msg":"server running","name":"remaining_auto_https_redirects","protocols":["h1","h2","h3"]}
{"level":"info","ts":1710038377.302826,"logger":"http","msg":"enabling automatic TLS certificate management","domains":["naff.casa","www.naff.casa","recipes.naff.casa","pbs.naff.casa","share.naff.casa","notes.naff.casa","sonarr.naff.casa","jellyfin.naff.casa","paste.naff.casa","prox.naff.casa","radarr.naff.casa","cctv.naff.casa","remote.naff.casa","fleet.naff.casa","request.naff.casa"]}
{"level":"warn","ts":1710038377.361569,"logger":"tls","msg":"storage cleaning happened too recently; skipping for now","storage":"FileStorage:/data/caddy","instance":"1eefd7be-e50c-47b6-8ac4-ba2293c49bab","try_again":1710124777.3615606,"try_again_in":86399.99999804}
{"level":"info","ts":1710038377.3619325,"logger":"tls","msg":"finished cleaning storage units"}
{"level":"info","ts":1710038378.7656298,"msg":"autosaved config (load with --resume flag)","file":"/config/caddy/autosave.json"}
{"level":"info","ts":1710038378.765692,"msg":"serving initial configuration"}
{"level":"error","ts":1710038379.5077343,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","upstream":"192.168.1.213:3344","duration":1.073064413,"request":{"remote_ip":"66.44.32.139","remote_port":"58996","client_ip":"66.44.32.139","proto":"HTTP/1.1","method":"GET","host":"naff.casa","uri":"/.well-known/matrix/server","headers":{"X-Forwarded-Host":["naff.casa"],"User-Agent":["Synapse/1.98.0"],"X-Forwarded-For":["66.44.32.139"],"X-Forwarded-Proto":["https"]},"tls":{"resumed":false,"version":772,"cipher_suite":4867,"proto":"","server_name":"naff.casa"}},"error":"reading: context canceled"}
{"level":"error","ts":1710040682.3930779,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","upstream":"192.168.1.213:3344","duration":0.647428279,"request":{"remote_ip":"206.189.191.137","remote_port":"52268","client_ip":"206.189.191.137","proto":"HTTP/1.1","method":"GET","host":"naff.casa","uri":"/.well-known/matrix/server","headers":{"User-Agent":["Synapse/1.90.0"],"X-Forwarded-For":["206.189.191.137"],"X-Forwarded-Proto":["https"],"X-Forwarded-Host":["naff.casa"]},"tls":{"resumed":false,"version":772,"cipher_suite":4867,"proto":"","server_name":"naff.casa"}},"error":"reading: context canceled"}
{"level":"error","ts":1710040839.7711787,"logger":"tls","msg":"tls-alpn challenge","remote_addr":"104.156.155.30:55218","server_name":"","error":"no information found to solve challenge for identifier: "}
{"level":"error","ts":1710041063.5822608,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","upstream":"192.168.1.213:3344","duration":0.654548092,"request":{"remote_ip":"92.63.173.236","remote_port":"34868","client_ip":"92.63.173.236","proto":"HTTP/1.1","method":"GET","host":"naff.casa","uri":"/.well-known/matrix/server","headers":{"User-Agent":["Synapse/1.90.0"],"X-Forwarded-For":["92.63.173.236"],"X-Forwarded-Proto":["https"],"X-Forwarded-Host":["naff.casa"]},"tls":{"resumed":false,"version":772,"cipher_suite":4867,"proto":"","server_name":"naff.casa"}},"error":"reading: context canceled"}
{"level":"error","ts":1710041095.0769587,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","upstream":"192.168.1.213:3344","duration":0.657014819,"request":{"remote_ip":"5.2.76.123","remote_port":"46426","client_ip":"5.2.76.123","proto":"HTTP/1.1","method":"GET","host":"naff.casa","uri":"/.well-known/matrix/server","headers":{"User-Agent":["Synapse/1.99.0"],"X-Forwarded-For":["5.2.76.123"],"X-Forwarded-Proto":["https"],"X-Forwarded-Host":["naff.casa"]},"tls":{"resumed":false,"version":772,"cipher_suite":4867,"proto":"","server_name":"naff.casa"}},"error":"reading: context canceled"}
{"level":"error","ts":1710042339.5014012,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","upstream":"192.168.1.157:8096","duration":0.05878097,"request":{"remote_ip":"192.168.1.1","remote_port":"19296","client_ip":"192.168.1.1","proto":"HTTP/1.1","method":"GET","host":"jellyfin.naff.casa","uri":"/Videos/1887bf0680602caf3037ca46aeee451b/stream?mediaSourceId=1887bf0680602caf3037ca46aeee451b&minSegments=6&playSessionId=ebd7bc993e44484ba162e0692abe686f&static=true","headers":{"Range":["bytes=0-"],"Accept":["*/*"],"Accept-Language":["en_US"],"User-Agent":["VLC/3.0.18 LibVLC/3.0.18"],"X-Forwarded-For":["192.168.1.1"],"X-Forwarded-Proto":["https"],"X-Forwarded-Host":["jellyfin.naff.casa"]},"tls":{"resumed":false,"version":771,"cipher_suite":49195,"proto":"","server_name":"jellyfin.naff.casa"}},"error":"writing: write tcp 172.18.0.2:443->192.168.1.1:19296: write: connection reset by peer"}
{"level":"error","ts":1710042626.723634,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","upstream":"192.168.1.157:8096","duration":0.005619343,"request":{"remote_ip":"192.168.1.1","remote_port":"57237","client_ip":"192.168.1.1","proto":"HTTP/1.1","method":"GET","host":"jellyfin.naff.casa","uri":"/Videos/1887bf0680602caf3037ca46aeee451b/stream?mediaSourceId=1887bf0680602caf3037ca46aeee451b&minSegments=6&playSessionId=ebd7bc993e44484ba162e0692abe686f&static=true","headers":{"If-Unmodified-Since":["Wed, 21 Feb 2024 01:33:00 GMT"],"Range":["bytes=104-"],"X-Forwarded-For":["192.168.1.1"],"X-Forwarded-Proto":["https"],"X-Forwarded-Host":["jellyfin.naff.casa"],"Accept":["*/*"],"Accept-Language":["en_US"],"User-Agent":["VLC/3.0.18 LibVLC/3.0.18"]},"tls":{"resumed":false,"version":771,"cipher_suite":49195,"proto":"","server_name":"jellyfin.naff.casa"}},"error":"writing: write tcp 172.18.0.2:443->192.168.1.1:57237: write: connection reset by peer"}
{"level":"info","ts":1710042801.3652372,"msg":"shutting down apps, then terminating","signal":"SIGTERM"}
{"level":"warn","ts":1710042801.3653347,"msg":"exiting; byeee!! 👋","signal":"SIGTERM"}
{"level":"info","ts":1710042801.3654199,"logger":"http","msg":"servers shutting down with eternal grace period"}
{"level":"info","ts":1710042812.2464848,"msg":"using provided configuration","config_file":"/etc/caddy/Caddyfile","config_adapter":"caddyfile"}
Error: adapting config using caddyfile: File to import not found: cors, at /etc/caddy/Caddyfile:45
{"level":"info","ts":1710042813.0522554,"msg":"using provided configuration","config_file":"/etc/caddy/Caddyfile","config_adapter":"caddyfile"}
Error: adapting config using caddyfile: File to import not found: cors, at /etc/caddy/Caddyfile:45
{"level":"info","ts":1710042813.8848004,"msg":"using provided configuration","config_file":"/etc/caddy/Caddyfile","config_adapter":"caddyfile"}
Error: adapting config using caddyfile: File to import not found: cors, at /etc/caddy/Caddyfile:45
{"level":"info","ts":1710042814.8125927,"msg":"using provided configuration","config_file":"/etc/caddy/Caddyfile","config_adapter":"caddyfile"}
Error: adapting config using caddyfile: File to import not found: cors, at /etc/caddy/Caddyfile:45
{"level":"info","ts":1710042816.1115732,"msg":"using provided configuration","config_file":"/etc/caddy/Caddyfile","config_adapter":"caddyfile"}
Error: adapting config using caddyfile: File to import not found: cors, at /etc/caddy/Caddyfile:45
{"level":"info","ts":1710042818.2177732,"msg":"using provided configuration","config_file":"/etc/caddy/Caddyfile","config_adapter":"caddyfile"}
Error: adapting config using caddyfile: File to import not found: cors, at /etc/caddy/Caddyfile:45
{"level":"info","ts":1710042821.9804058,"msg":"using provided configuration","config_file":"/etc/caddy/Caddyfile","config_adapter":"caddyfile"}
Error: adapting config using caddyfile: File to import not found: cors, at /etc/caddy/Caddyfile:45
rnaff@caddy:/docker/caddy$ ,"client_ip":"207.180.229.249","proto":"HTTP/1.1","method":"GET","host":"naff.casa","uri":"/.well-known/matrix/server","headers":{"X-Forwarded-Proto":["https"],"X-Forwarded-Host":["naff.casa"],"User-Agent":["Synapse/1.100.0"],"X-Forwarded-For":["207.180.229.249"]},"tls":{"resumed":false,"version":772,"cipher_suite":4867,"proto":"","server_name":"naff.casa"}},"error":"reading: context canceled"}
{"level":"error","ts":1710020758.866428,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","upstream":"192.168.1.213:3344","duration":0.69882222,"request":{"remote_ip":"51.81.202.89","remote_port":"42628","client_ip":"51.81.202.89","proto":"HTTP/1.1","method":"GET","host":"naff.casa","uri":"/.well-known/matrix/server","headers":{"User-Agent":["Synapse/1.102.0"],"X-Forwarded-For":["51.81.202.89"],"X-Forwarded-Proto":["https"],"X-Forwarded-Host":["naff.casa"]},"tls":{"resumed":false,"version":772,"cipher_suite":4867,"proto":"","server_name":"naff.casa"}},"error":"reading: context canceled"}
{"level":"error","ts":1710021096.6645062,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","upstream":"192.168.1.213:3344","duration":0.754013889,"request":{"remote_ip":"3.74.23.23","remote_port":"38673","client_ip":"3.74.23.23","proto":"HTTP/1.1","method":"GET","host":"naff.casa","uri":"/.well-known/matrix/server","headers":{"User-Agent":["Synapse/1.102.0"],"X-Forwarded-For":["3.74.23.23"],"X-Forwarded-Proto":["https"],"X-Forwarded-Host":["naff.casa"]},"tls":{"resumed":false,"version":772,"cipher_suite":4867,"proto":"","server_name":"naff.casa"}},"error":"reading: context canceled"}
{"level":"error","ts":1710021199.4379818,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","upstream":"192.168.1.213:3344","duration":0.739195674,"request":{"remote_ip":"198.41.30.213","remote_port":"58610","client_ip":"198.41.30.213","proto":"HTTP/1.1","method":"GET","host":"naff.casa","uri":"/.well-known/matrix/server","headers":{"User-Agent":["Synapse/1.101.0"],"X-Forwarded-For":["198.41.30.213"],"X-Forwarded-Proto":["https"],"X-Forwarded-Host":["naff.casa"]},"tls":{"resumed":false,"version":772,"cipher_suite":4867,"proto":"","server_name":"naff.casa"}},"error":"reading: context canceled"}
{"level":"error","ts":1710021337.693408,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","upstream":"192.168.1.213:3344","duration":0.672513914,"request":{"remote_ip":"31.19.197.1","remote_port":"60882","client_ip":"31.19.197.1","proto":"HTTP/1.1","method":"GET","host":"naff.casa","uri":"/.well-known/matrix/server","headers":{"X-Forwarded-For":["31.19.197.1"],"X-Forwarded-Proto":["https"],"X-Forwarded-Host":["naff.casa"],"User-Agent":["Synapse/1.98.0"]},"tls":{"resumed":false,"version":772,"cipher_suite":4867,"proto":"","server_name":"naff.casa"}},"error":"reading: context canceled"}
{"level":"error","ts":1710021732.070688,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","upstream":"192.168.1.213:3344","duration":0.807166108,"request":{"remote_ip":"54.146.55.171","remote_port":"57724","client_ip":"54.146.55.171","proto":"HTTP/1.1","method":"GET","host":"naff.casa","uri":"/.well-known/matrix/server","headers":{"User-Agent":["Synapse/1.101.0"],"X-Forwarded-For":["54.146.55.171"],"X-Forwarded-Proto":["https"],"X-Forwarded-Host":["naff.casa"]},"tls":{"resumed":false,"version":772,"cipher_suite":4867,"proto":"","server_name":"naff.casa"}},"error":"reading: context canceled"}
{"level":"error","ts":1710021879.7679842,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","upstream":"192.168.1.213:3344","duration":0.670634228,"request":{"remote_ip":"217.238.255.230","remote_port":"57072","client_ip":"217.238.255.230","proto":"HTTP/1.1","method":"GET","host":"naff.casa","uri":"/.well-known/matrix/server","headers":{"User-Agent":["Synapse/1.99.0"],"X-Forwarded-For":["217.238.255.230"],"X-Forwarded-Proto":["https"],"X-Forwarded-Host":["naff.casa"]},"tls":{"resumed":false,"version":772,"cipher_suite":4867,"proto":"","server_name":"naff.casa"}},"error":"reading: context canceled"}
{"level":"error","ts":1710022665.8901732,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","upstream":"192.168.1.213:3344","duration":1.099933118,"request":{"remote_ip":"193.40.103.195","remote_port":"51498","client_ip":"193.40.103.195","proto":"HTTP/1.1","method":"GET","host":"naff.casa","uri":"/.well-known/matrix/server","headers":{"X-Forwarded-Proto":["https"],"X-Forwarded-Host":["naff.casa"],"User-Agent":["Synapse/1.101.0 (b=master,f066475)"],"X-Forwarded-For":["193.40.103.195"]},"tls":{"resumed":false,"version":772,"cipher_suite":4867,"proto":"","server_name":"naff.casa"}},"error":"reading: context canceled"}
{"level":"error","ts":1710022726.700762,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","upstream":"192.168.1.213:3344","duration":0.692416815,"request":{"remote_ip":"89.150.130.29","remote_port":"48856","client_ip":"89.150.130.29","proto":"HTTP/1.1","method":"GET","host":"naff.casa","uri":"/.well-known/matrix/server","headers":{"X-Forwarded-Proto":["https"],"X-Forwarded-Host":["naff.casa"],"User-Agent":["Synapse/1.90.0"],"X-Forwarded-For":["89.150.130.29"]},"tls":{"resumed":false,"version":772,"cipher_suite":4867,"proto":"","server_name":"naff.casa"}},"error":"reading: context canceled"}
{"level":"error","ts":1710023100.7696426,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","upstream":"192.168.1.157:8096","duration":0.00972293,"request":{"remote_ip":"192.168.1.1","remote_port":"25792","client_ip":"192.168.1.1","proto":"HTTP/1.1","method":"GET","host":"jellyfin.naff.casa","uri":"/Videos/9daf0b794e8d543820f58f0aec1001a7/stream.mp4?Static=true&mediaSourceId=9daf0b794e8d543820f58f0aec1001a7&deviceId=TW96aWxsYS81LjAgKExpbnV4OyBOZXRDYXN0OyBVKSBBcHBsZVdlYktpdC81MzcuMzEgKEtIVE1MLCBsaWtlIEdlY2tvKSBDaHJvbWUvMzguMC4yMTI1LjEyMiBTYWZhcmkvNTM3LjMxIFNtYXJ0VFYvNy41fDE2OTEyMDMyODE3ODc1&api_key=1e8447437c8b4973ad536474482c723f&Tag=2c3018d7c25de210b3bdf357234444ac","headers":{"X-Forwarded-For":["192.168.1.1"],"Icy-Metadata":["1"],"Range":["bytes=0-"],"Referer":[""],"X-Forwarded-Proto":["https"],"X-Forwarded-Host":["jellyfin.naff.casa"],"Cookie":[],"User-Agent":["Mozilla/5.0 (Linux; NetCast; U) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/38.0.2125.122 Safari/537.31 SmartTV/7.5"]},"tls":{"resumed":false,"version":771,"cipher_suite":49195,"proto":"","server_name":"jellyfin.naff.casa"}},"error":"writing: write tcp 172.18.0.2:443->192.168.1.1:25792: write: connection reset by peer"}
{"level":"error","ts":1710023440.9176853,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","upstream":"192.168.1.213:3344","duration":0.802397924,"request":{"remote_ip":"5.9.100.88","remote_port":"46996","client_ip":"5.9.100.88","proto":"HTTP/1.1","method":"GET","host":"naff.casa","uri":"/.well-known/matrix/server","headers":{"User-Agent":["Synapse/1.90.0"],"X-Forwarded-For":["5.9.100.88"],"X-Forwarded-Proto":["https"],"X-Forwarded-Host":["naff.casa"]},"tls":{"resumed":false,"version":772,"cipher_suite":4867,"proto":"","server_name":"naff.casa"}},"error":"reading: context canceled"}
{"level":"error","ts":1710023456.4229393,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","upstream":"192.168.1.213:3344","duration":0.536840132,"request":{"remote_ip":"206.189.191.137","remote_port":"48288","client_ip":"206.189.191.137","proto":"HTTP/1.1","method":"GET","host":"naff.casa","uri":"/.well-known/matrix/server","headers":{"User-Agent":["Synapse/1.90.0"],"X-Forwarded-For":["206.189.191.137"],"X-Forwarded-Proto":["https"],"X-Forwarded-Host":["naff.casa"]},"tls":{"resumed":false,"version":772,"cipher_suite":4867,"proto":"","server_name":"naff.casa"}},"error":"reading: context canceled"}
{"level":"error","ts":1710024452.2436035,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","upstream":"192.168.1.213:3344","duration":0.825582602,"request":{"remote_ip":"75.119.156.28","remote_port":"60990","client_ip":"75.119.156.28","proto":"HTTP/1.1","method":"GET","host":"naff.casa","uri":"/.well-known/matrix/server","headers":{"User-Agent":["Synapse/1.90.0"],"X-Forwarded-For":["75.119.156.28"],"X-Forwarded-Proto":["https"],"X-Forwarded-Host":["naff.casa"]},"tls":{"resumed":false,"version":772,"cipher_suite":4867,"proto":"","server_name":"naff.casa"}},"error":"reading: context canceled"}
{"level":"error","ts":1710025892.6586301,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","upstream":"192.168.1.213:3344","duration":0.817252631,"request":{"remote_ip":"92.63.173.236","remote_port":"36214","client_ip":"92.63.173.236","proto":"HTTP/1.1","method":"GET","host":"naff.casa","uri":"/.well-known/matrix/server","headers":{"X-Forwarded-For":["92.63.173.236"],"X-Forwarded-Proto":["https"],"X-Forwarded-Host":["naff.casa"],"User-Agent":["Synapse/1.90.0"]},"tls":{"resumed":false,"version":772,"cipher_suite":4867,"proto":"","server_name":"naff.casa"}},"error":"reading: context canceled"}
{"level":"error","ts":1710025963.2965996,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","upstream":"192.168.1.213:3344","duration":0.704667649,"request":{"remote_ip":"70.34.210.113","remote_port":"43078","client_ip":"70.34.210.113","proto":"HTTP/1.1","method":"GET","host":"naff.casa","uri":"/.well-known/matrix/server","headers":{"X-Forwarded-Proto":["https"],"X-Forwarded-Host":["naff.casa"],"User-Agent":["Synapse/1.90.0"],"X-Forwarded-For":["70.34.210.113"]},"tls":{"resumed":false,"version":772,"cipher_suite":4867,"proto":"","server_name":"naff.casa"}},"error":"reading: context canceled"}
{"level":"error","ts":1710026344.6491988,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","upstream":"192.168.1.213:3344","duration":1.892064659,"request":{"remote_ip":"5.9.100.88","remote_port":"57452","client_ip":"5.9.100.88","proto":"HTTP/1.1","method":"GET","host":"naff.casa","uri":"/.well-known/matrix/server","headers":{"User-Agent":["Synapse/1.90.0"],"X-Forwarded-For":["5.9.100.88"],"X-Forwarded-Proto":["https"],"X-Forwarded-Host":["naff.casa"]},"tls":{"resumed":false,"version":772,"cipher_suite":4867,"proto":"","server_name":"naff.casa"}},"error":"reading: context canceled"}
{"level":"error","ts":1710026495.5232556,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","upstream":"192.168.1.213:3344","duration":0.835806438,"request":{"remote_ip":"206.189.191.137","remote_port":"53862","client_ip":"206.189.191.137","proto":"HTTP/1.1","method":"GET","host":"naff.casa","uri":"/.well-known/matrix/server","headers":{"User-Agent":["Synapse/1.90.0"],"X-Forwarded-For":["206.189.191.137"],"X-Forwarded-Proto":["https"],"X-Forwarded-Host":["naff.casa"]},"tls":{"resumed":false,"version":772,"cipher_suite":4867,"proto":"","server_name":"naff.casa"}},"error":"reading: context canceled"}
{"level":"error","ts":1710028999.475714,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","upstream":"192.168.1.213:3344","duration":0.803534287,"request":{"remote_ip":"92.63.173.236","remote_port":"45420","client_ip":"92.63.173.236","proto":"HTTP/1.1","method":"GET","host":"naff.casa","uri":"/.well-known/matrix/server","headers":{"User-Agent":["Synapse/1.90.0"],"X-Forwarded-For":["92.63.173.236"],"X-Forwarded-Proto":["https"],"X-Forwarded-Host":["naff.casa"]},"tls":{"resumed":false,"version":772,"cipher_suite":4867,"proto":"","server_name":"naff.casa"}},"error":"reading: context canceled"}
{"level":"error","ts":1710029078.231667,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","upstream":"192.168.1.213:3344","duration":0.672804053,"request":{"remote_ip":"70.34.210.113","remote_port":"36826","client_ip":"70.34.210.113","proto":"HTTP/1.1","method":"GET","host":"naff.casa","uri":"/.well-known/matrix/server","headers":{"User-Agent":["Synapse/1.90.0"],"X-Forwarded-For":["70.34.210.113"],"X-Forwarded-Proto":["https"],"X-Forwarded-Host":["naff.casa"]},"tls":{"resumed":false,"version":772,"cipher_suite":4867,"proto":"","server_name":"naff.casa"}},"error":"reading: context canceled"}
{"level":"error","ts":1710029202.860681,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","upstream":"192.168.1.213:3344","duration":0.707966582,"request":{"remote_ip":"5.9.100.88","remote_port":"40900","client_ip":"5.9.100.88","proto":"HTTP/1.1","method":"GET","host":"naff.casa","uri":"/.well-known/matrix/server","headers":{"X-Forwarded-Host":["naff.casa"],"User-Agent":["Synapse/1.90.0"],"X-Forwarded-For":["5.9.100.88"],"X-Forwarded-Proto":["https"]},"tls":{"resumed":false,"version":772,"cipher_suite":4867,"proto":"","server_name":"naff.casa"}},"error":"reading: context canceled"}
{"level":"error","ts":1710029301.434915,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","upstream":"192.168.1.213:3344","duration":0.746819472,"request":{"remote_ip":"206.189.191.137","remote_port":"59042","client_ip":"206.189.191.137","proto":"HTTP/1.1","method":"GET","host":"naff.casa","uri":"/.well-known/matrix/server","headers":{"User-Agent":["Synapse/1.90.0"],"X-Forwarded-For":["206.189.191.137"],"X-Forwarded-Proto":["https"],"X-For^Clevel":"info","ts":1710042801.3652372,"msg":"shutting down apps,

What did you actually add to your config that caused it to break? I don’t find it clear from your post.

Again, you only shared your logs, but not what you’re actually trying to do. Show an example request with curl -v. Explain the problem.

I’ve added this to my Caddyfile which breaks it:

chat.naff.casa {
        reverse_proxy localhost:3000
        header Access-Control-Allow-Methods "POST, GET, OPTIONS"
        header Access-Control-Allow-Headers "*"
        import cors https://sub.domain.livechat
}

Where do you define cors? I can’t see it.

Neither can Caddy, apparently:

Great question.

I’ve never had to deal with ‘cors’ prior to this.

Can you guide me in the right direction please?

If you don’t know what you need it for, and you didn’t write it, and you’re not sure what it does, I would recommend not putting it in your Caddyfile.

is there another way to get Rocket.chat to work without it using Caddy or should i go back to Traefik?

I don’t understand. Does the app not work without that line?

I believe so – this is the code recommended to use in your Caddyfile by Rocket.chat…

Scroll down to the bottom and you’ll see.

I’m sorry, but I don’t know if I can help you with that.

The documentation on their website seems to be flawed and incomplete. I expect anyone following those instructions to run into the same problem. To import something, there must be a snippet or a file to import; there’s really no way around that, and they haven’t explained what they want you to import. They’ve just… Left an import line there. I can’t see how it would ever work.

I’m really surprised to hear that becuase of the size of both projects (caddy/rocketchat) – I can’t believe I’m the first person to try to use the two together?

=O haha

I’m kinda confused as well.

It’s possible there’s instructions on a different page, maybe? Some deployment step that involves cloning a git repo or something - something that would place a file named cors in the Caddyfile directory to import, perhaps?

I don’t know. But I will say that at a glance, none of their instructions for the other web servers seem to include CORS handling (or even header handling), so I don’t know why they have it for Caddy.

I’d consider trying it with ONLY the reverse_proxy (no import or header directives) and just see if that works.