1. Output of caddy version
:
Caddy Version v2.6.1
2. How I run Caddy:
i use nssm and the caddy.exe with cloudflare and duckdns plugins.
a. System environment:
Windows 11 Caddy.exe is the runing in NSSM
b. Command:
./caddy run --config Caddyfile
d. My complete Caddy config:
home.movies4you.stream {
root * C:\Tools\OrganizrV2\www\organizr\html
php_fastcgi localhost:9000
rewrite /api/v2/* /api/v2/index.php?{query}
file_server
tls {
dns cloudflare (API KEY)
}
}
requests.movies4you.stream {
reverse_proxy 127.0.0.1:5055
tls {
dns cloudflare (API KEY)
}
}
accounts.movies4you.stream {
reverse_proxy 127.0.0.1:8056
tls {
dns cloudflare (API KEY)
}
}
tv.movies4you.stream {
reverse_proxy 127.0.0.1:8096
tls {
dns cloudflare (API KEY)
}
}
deluge.movies4you.stream {
reverse_proxy 127.0.0.1:8112
tls {
dns cloudflare (API KEY)
}
}
adg.ittechnut.com {
reverse_proxy 192.168.1.111:3000
tls {
dns cloudflare (API KEY)
}
}
photos.movies4you.stream {
reverse_proxy 127.0.0.1:8000
tls {
dns cloudflare (API KEY)
}
}
ha.movies4you.stream {
reverse_proxy 192.168.1.134:8123
tls {
dns cloudflare (API KEY)
}
}
kitchen.movies4you.stream {
reverse_proxy 127.0.0.1:9090
tls {
dns cloudflare (API KEY)
}
}
music.movies4you.stream {
reverse_proxy 127.0.0.1:5050
tls {
dns cloudflare (API KEY)
}
}
rdp.ittechnut.com {
reverse_proxy 192.168.1.145
tls {
dns cloudflare (API KEY)
}
}
home.ittechnut.com {
root C:\Tools\wordpress\ittechnut
php_fastcgi 127.0.0.1:9000
file_server
encode gzip
}
files.movies4you.stream {
reverse_proxy 127.0.0.1:8484
tls {
dns cloudflare (API KEY)
}
}
3. The problem I’m having:
4. Error messages and/or full log output:
2023/01/08 01:26:25.291 INFO using provided configuration {"config_file": "Caddyfile", "config_adapter": ""}
2023/01/08 01:26:25.297 INFO admin admin endpoint started {"address": "tcp/localhost:2019", "enforce_origin": false, "origins": ["127.0.0.1:2019", "localhost:2019", "[::1]:2019"]}
2023/01/08 01:26:25.298 INFO tls.cache.maintenance started background certificate maintenance {"cache": "0xc0001cfea0"}
2023/01/08 01:26:25.299 INFO http 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}
2023/01/08 01:26:25.299 INFO http enabling automatic HTTP->HTTPS redirects {"server_name": "srv0"}
2023/01/08 01:26:25.301 INFO http enabling automatic TLS certificate management {"domains": ["adg.ittechnut.com", "rdp.ittechnut.com", "requests.movies4you.stream", "kitchen.movies4you.stream", "photos.movies4you.stream", "home.ittechnut.com", "music.movies4you.stream", "files.movies4you.stream", "home.movies4you.stream", "ha.movies4you.stream", "tv.movies4you.stream", "accounts.movies4you.stream", "deluge.movies4you.stream"]}
2023/01/08 01:26:25.317 INFO tls.obtain acquiring lock {"identifier": "files.movies4you.stream"}
2023/01/08 01:26:25.318 INFO tls.obtain lock acquired {"identifier": "files.movies4you.stream"}
2023/01/08 01:26:25.320 INFO tls.issuance.acme waiting on internal rate limiter {"identifiers": ["files.movies4you.stream"]}
2023/01/08 01:26:25.320 INFO tls.issuance.acme done waiting on internal rate limiter {"identifiers": ["files.movies4you.stream"]}
2023/01/08 01:26:25.321 INFO autosaved config {"file": "C:\\Users\\DevilsCoder\\AppData\\Roaming\\Caddy\\autosave.json"}
2023/01/08 01:26:25.321 INFO serving initial configuration
2023/01/08 01:26:25.323 INFO tls cleaned up storage units
2023/01/08 01:26:25.741 INFO tls.issuance.acme.acme_client trying to solve challenge {"identifier": "files.movies4you.stream", "challenge_type": "dns-01", "ca": "https://acme-v02.api.letsencrypt.org/directory"}
2023/01/08 01:26:26.198 ERROR tls.issuance.acme.acme_client cleaning up solver {"identifier": "files.movies4you.stream", "challenge_type": "dns-01", "error": "no memory of presenting a DNS record for files.movies4you.stream (probably OK if presenting failed)"}
2023/01/08 01:26:26.247 ERROR tls.obtain will retry {"error": "[files.movies4you.stream] Obtain: [files.movies4you.stream] solving challenges: presenting for challenge: adding temporary record for zone movies4you.stream.: got error status: HTTP 403: [{Code:9109 Message:Invalid access token}] (order=https://acme-v02.api.letsencrypt.org/acme/order/155458460/157512635307) (ca=https://acme-v02.api.letsencrypt.org/directory)", "attempt": 1, "retrying_in": 60, "elapsed": 0.9284453, "max_duration": 2592000}
5. What I already tried:
I cannot find anyone else who has this error or why it is happening.
Some more information my domain files.movies4you.stream is my nextcloud instance running on docker-compose.yml
I can access nextcloud on 127.0.0.1:8484 on my windows PC.
heres my docker-compose if need be
version: '3.7'
services:
db:
container_name: nextcloud-db
image: mariadb
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
restart: always
volumes:
- db:/var/lib/mysql
env_file:
- ./config/db.env
environment:
- MYSQL_ROOT_PASSWORD=MYPASSWORD
networks:
- db
app:
container_name: nextcloud
image: nextcloud
ports:
- 8484:80
volumes:
- nextcloud:/var/www/html
env_file:
- ./config/db.env
environment:
- MYSQL_HOST=db
- NEXTCLOUD_TRUSTED_DOMAINS="localhost 192.168.1.111 files.movies4you.stream"
restart: always
networks:
- default
- db
depends_on:
- db
volumes:
db:
nextcloud:
networks:
db: