Hey,
I've been trying to enable remote access to some services such as Jellyfin and Nextcloud on Docker.
I've been following this tutorial:
[[How-To] Route a domain through cloudflare with automatic IP updating]([How-To] Route a domain through cloudflare with automatic IP updating - Guides - openmediavault)
I've followed this tutorial once already and I managed to make it work, but I made some stupid mistake and had to reinstall everything.
I can't figure out what have I done wrong and why isnt it working.
I am attaching my docker-compose file, swag logs, dns records:
swag docker-compose:
---
version: "2.1"
services:
swag:
image: ghcr.io/linuxserver/swag
container_name: swag
cap_add:
- NET_ADMIN
environment:
- PUID=1000 #ADJUST
- PGID=100 #ADJUST
- URL=mydomain.com #ADJUST
- SUBDOMAINS=www
- VALIDATION=dns
- DNSPLUGIN=cloudflare
- CERTPROVIDER=zerossl
volumes:
- /srv/dev-disk-by-uuid-3d2edd1f-14a1-d901-0026-891f14a1d901/swagConf:/config #ADJUST
ports:
- 444:443
- 81:80
restart: unless-stopped
swag logs:
───────────────────────────────────────
██╗ ███████╗██╗ ██████╗
██║ ██╔════╝██║██╔═══██╗
██║ ███████╗██║██║ ██║
██║ ╚════██║██║██║ ██║
███████╗███████║██║╚██████╔╝
╚══════╝╚══════╝╚═╝ ╚═════╝
Brought to you by linuxserver.io
───────────────────────────────────────
To support the app dev(s) visit:
Certbot: https://supporters.eff.org/donate/support-work-on-certbot
To support LSIO projects visit:
https://www.linuxserver.io/donate/
───────────────────────────────────────
GID/UID
───────────────────────────────────────
User UID: 1000
User GID: 100
───────────────────────────────────────
using keys found in /config/keys
Variables set:
PUID=1000
PGID=100
TZ=
URL=mydomain.com
SUBDOMAINS=www
EXTRA_DOMAINS=
ONLY_SUBDOMAINS=false
VALIDATION=dns
CERTPROVIDER=
DNSPLUGIN=cloudflare
EMAIL=
STAGING=
Different validation parameters entered than what was used before. Revoking and deleting existing certificate, and an updated one will be created
Using Let's Encrypt as the cert provider
SUBDOMAINS entered, processing
SUBDOMAINS entered, processing
Sub-domains processed are: -d www.mydomain.com
No e-mail address entered or address invalid
dns validation via cloudflare plugin is selected
Generating new certificate
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Account registered.
Requesting a certificate for mydomain.com and www.mydomain.com
Unsafe permissions on credentials configuration file: /config/dns-conf/cloudflare.ini
Waiting 10 seconds for DNS changes to propagate
Certbot failed to authenticate some domains (authenticator: dns-cloudflare). The Certificate Authority reported these problems:
Domain: www.mydomain.com
Type: dns
Detail: DNS problem: NXDOMAIN looking up TXT for _acme-challenge.www.mydomain.com - check that a DNS record exists for this domain
Hint: The Certificate Authority failed to verify the DNS TXT records created by --dns-cloudflare. Ensure the above domains are hosted by this DNS provider, or try increasing --dns-cloudflare-propagation-seconds (currently 10 seconds).
Some challenges have failed.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
ERROR: Cert does not exist! Please see the validation error above. Make sure you entered correct credentials into the /config/dns-conf/cloudflare.ini file.
I've been sitting at this for hours, and would really appreciate any help. If there is anything else I should provide, let me know and Ill attach it.
I'm new to all of this so sorry in advance for my lack of knowledge.