$ cat Caddyfile
# The Caddyfile is an easy way to configure your Caddy web server.
#
# Unless the file starts with a global options block, the first
# uncommented line is always the address of your site.
#
# To use your own domain name (with automatic HTTPS), first make
# sure your domain's A/AAAA DNS records are properly pointed to
# this machine's public IP, then replace ":80" below with your
# domain name.
immich.domain.com {
reverse_proxy 10.1.20.15:2283 {
transport http {
tls
tls_insecure_skip_verify
}
}
}
im.domain.com {
handle {
reverse_proxy 10.1.20.15:2283
}
"automatic_https": {
"disable": true / false,
}
}
##:80 {
# Set this path to your site's directory.
## root * /usr/share/caddy
# Enable the static file server.
## file_server
# Another common task is to set up a reverse proxy:
# reverse_proxy localhost:8080
# Or serve a PHP site through php-fpm:
# php_fastcgi localhost:9000
##}
# Refer to the Caddy docs for more information:
# https://caddyserver.com/docs/caddyfile
journalctl -xeu caddy.service
Jul 24 21:57:41 Caddy caddy[137]: {"level":"info","ts":1721858261.2461195,"logger":"http.acme_client","msg":"trying to solve challenge","identifier":"im.domain.com","challenge_type":"http-01","ca":"https://acme-staging-v02.api.letsencrypt.org/directory"}
Jul 24 21:57:42 Caddy caddy[137]: {"level":"error","ts":1721858262.2368302,"logger":"http.acme_client","msg":"challenge failed","identifier":"im.domain.com","challenge_type":"http-01","problem":{"type":"urn:ietf:params:acme:error:dns","title":"","detail":"DNS problem:>
Jul 24 21:57:42 Caddy caddy[137]: {"level":"error","ts":1721858262.236876,"logger":"http.acme_client","msg":"validating authorization","identifier":"im.domain.com","problem":{"type":"urn:ietf:params:acme:error:dns","title":"","detail":"DNS problem: NXDOMAIN looking up>
Jul 24 21:57:43 Caddy caddy[137]: {"level":"info","ts":1721858263.602246,"logger":"http.acme_client","msg":"trying to solve challenge","identifier":"im.domain.com","challenge_type":"tls-alpn-01","ca":"https://acme-staging-v02.api.letsencrypt.org/directory"}
Jul 24 21:57:44 Caddy caddy[137]: {"level":"error","ts":1721858264.173067,"logger":"http.acme_client","msg":"challenge failed","identifier":"im.domain.com","challenge_type":"tls-alpn-01","problem":{"type":"urn:ietf:params:acme:error:dns","title":"","detail":"DNS probl>
Jul 24 21:57:44 Caddy caddy[137]: {"level":"error","ts":1721858264.1731,"logger":"http.acme_client","msg":"validating authorization","identifier":"im.domain.com","problem":{"type":"urn:ietf:params:acme:error:dns","title":"","detail":"DNS problem: NXDOMAIN looking up A>
Jul 24 21:57:44 Caddy caddy[137]: {"level":"error","ts":1721858264.1731217,"logger":"tls.obtain","msg":"could not get certificate from issuer","identifier":"im.domain.com","issuer":"acme-v02.api.letsencrypt.org-directory","error":"HTTP 400 urn:ietf:params:acme:error:d>
Jul 24 21:57:44 Caddy caddy[137]: {"level":"error","ts":1721858264.173178,"logger":"tls.obtain","msg":"will retry","error":"[im.domain.com] Obtain: [im.domain.com] solving challenge: im.domain.com: [im.domain.com] authorization failed: HTTP 400 urn:ietf:params:acme:er>
Jul 24 21:57:44 Caddy caddy[137]: {"level":"info","ts":1721858264.8117154,"logger":"tls.obtain","msg":"obtaining certificate","identifier":"immich.domain.com"}
Jul 24 21:57:44 Caddy caddy[137]: {"level":"info","ts":1721858264.812435,"logger":"http","msg":"using ACME account","account_id":"https://acme-staging-v02.api.letsencrypt.org/acme/acct/156913493","account_contact":[]}
Jul 24 21:57:45 Caddy caddy[137]: {"level":"info","ts":1721858265.334644,"logger":"http.acme_client","msg":"trying to solve challenge","identifier":"immich.domain.com","challenge_type":"http-01","ca":"https://acme-staging-v02.api.letsencrypt.org/directory"}
Jul 24 21:57:46 Caddy caddy[137]: {"level":"error","ts":1721858266.7274933,"logger":"http.acme_client","msg":"challenge failed","identifier":"immich.domain.com","challenge_type":"http-01","problem":{"type":"urn:ietf:params:acme:error:unauthorized","title":"","detail":>
Jul 24 21:57:46 Caddy caddy[137]: {"level":"error","ts":1721858266.7275271,"logger":"http.acme_client","msg":"validating authorization","identifier":"immich.domain.com","problem":{"type":"urn:ietf:params:acme:error:unauthorized","title":"","detail":"2606:4700:3033::68>
Jul 24 21:57:48 Caddy caddy[137]: {"level":"info","ts":1721858268.0866168,"logger":"http.acme_client","msg":"trying to solve challenge","identifier":"immich.domain.com","challenge_type":"tls-alpn-01","ca":"https://acme-staging-v02.api.letsencrypt.org/directory"}
Jul 24 21:57:49 Caddy caddy[137]: {"level":"error","ts":1721858269.0788798,"logger":"http.acme_client","msg":"challenge failed","identifier":"immich.domain.com","challenge_type":"tls-alpn-01","problem":{"type":"urn:ietf:params:acme:error:unauthorized","title":"","deta>
Jul 24 21:57:49 Caddy caddy[137]: {"level":"error","ts":1721858269.0789309,"logger":"http.acme_client","msg":"validating authorization","identifier":"immich.domain.com","problem":{"type":"urn:ietf:params:acme:error:unauthorized","title":"","detail":"Cannot negotiate A>
Jul 24 21:57:49 Caddy caddy[137]: {"level":"error","ts":1721858269.078956,"logger":"tls.obtain","msg":"could not get certificate from issuer","identifier":"immich.domain.com","issuer":"acme-v02.api.letsencrypt.org-directory","error":"HTTP 403 urn:ietf:params:acme:erro>
Jul 24 21:57:49 Caddy caddy[137]: {"level":"error","ts":1721858269.078995,"logger":"tls.obtain","msg":"will retry","error":"[immich.domain.com] Obtain: [immich.domain.com] solving challenge: immich.domain.com: [immich.domain.com] authorization failed: HTTP 403 urn:iet>
lines 97-180/180 (END)
With the interesting part of the auto cert
ba: Invalid response from https://immich.domain.com/.well-known/acme-challenge/m1ZmPMWWk1_wEB04RGZErkI2bXaH9FVXRreWFcNiN9I: 403","instance":"","subproblems":[]}}
this is the complete right part of journal output , aka right arrow →
"2606:4700:3033::6815:45ba: Invalid response from https://immich.domain.com/.well-known/acme-challenge/m1ZmPMWWk1_wEB04RGZErkI2bXaH9FVXRreWFcNiN9I: 403","instance":"","subproblems":[]}}
15:45ba: Invalid response from https://immich.domain.com/.well-known/acme-challenge/m1ZmPMWWk1_wEB04RGZErkI2bXaH9FVXRreWFcNiN9I: 403","instance":"","subproblems":[]},"order":"https://acme-staging-v02.api.letsencrypt.org/acme/order/156913493/17991925353","attempt":1,"m>
il":"Cannot negotiate ALPN protocol \"acme-tls/1\" for tls-alpn-01 challenge","instance":"","subproblems":[]}}
LPN protocol \"acme-tls/1\" for tls-alpn-01 challenge","instance":"","subproblems":[]},"order":"https://acme-staging-v02.api.letsencrypt.org/acme/order/156913493/17991925923","attempt":2,"max_attempts":3}
r:unauthorized - Cannot negotiate ALPN protocol \"acme-tls/1\" for tls-alpn-01 challenge"}
f:params:acme:error:unauthorized - Cannot negotiate ALPN protocol \"acme-tls/1\" for tls-alpn-01 challenge (ca=https://acme-staging-v02.api.letsencrypt.org/directory)","attempt":6,"retrying_in":600,"elapsed":1226.515353572,"max_duration":2592000}
lines 97-180/180 (END)