jfroment / seedbox

A Docker-powered seedbox with persistent data and more cool stuff.
MIT License
322 stars 46 forks source link

DNS Problem.. :| #47

Open Qbaakr opened 1 year ago

Qbaakr commented 1 year ago

Hello Let me start with the fact that this is one of the first projects I have contact with - but where do you need to start... From the whole package I installed: -deluge -traefik -portainer -jdownloader -nextcloud-db -nextcloud I did everything according to the settings, log in. and then I encounter an error in the form of no SSL certification for a given DNS address. I have read quite a lot of topics, but due to the fact that this is my beginning - I can't find a solution. in some topics on http auth there are solutions based on toml, or other solutions, e.g. acme.json file Thanks in advance with any hint Regards

P.S. I tried different options... the option without https works fine

jfroment commented 1 year ago

Hello, did you configure your email for Traefik ACME resolver in the .env file (variable is ACME_MAIL)? Also, is your instance reachable from the Internet on port 80 (maybe check your firewall). By default, Traefik uses the httpChallenge to generate a valid certificate, and this challenges uses the insecure port 80 for Let's Encrypt to check your domain.

If you're still blocked, please do not hesitate to send me your configuration (with password redacted of course), I'll check if I spot something.

Qbaakr commented 1 year ago

Hello. At this point I reinstalled everything. I installed Docker Compose from the official repo, due to the local-presist error I installed it from CWSpear, the rest from the links provided (ubuntu already has jq pre-installed in the newer version). Currently there is this problem: WARN[0000] a network with name traefik-network exists but was not created by compose. Set external: true to use an existing network network traefik-network was found but has incorrect label com.docker.compose.network set to "" and now the question is whether it is enough to sign it correctly or delete it and create a new one? Regards p.s At this point I have solved other problems, DNS is still there. "SSL_ERROR_UNRECOGNIZED_NAME_ALERT" Is an .env file Currently I only have downloaded: deluge, traefik, portainer, jdownloader

Internal settings (they will not be passed to running services)

CHECK_FOR_OUTDATED_CONFIG=true

DOCKER_COMPOSE_BINARY="docker compose" # or "docker-compose"

General Traefik (reverse proxy) settings

TRAEFIK_DOMAIN=qba.localhost ACME_MAIL=xyz@gmail.com

General settings

TZ="Europe/Paris"

HTTP Auth

HTTP_USER=Qba

Use this command to generate your password:

docker run -it --rm --entrypoint htpasswd ubuntu/apache2 -nb your_user your_password | cut -d ":" -f 2

HTTP_PASSWORD='$***' # Keep these simple quotes!

Host paths + containers permissions mapping

HOST_CONFIG_PATH="/data/config" HOST_MEDIA_PATH="/data/torrents"

Will be located in $HOST_MEDIA_PATH

DOWNLOAD_SUBFOLDER="deluge" PGID=1000 PUID=1000

Database (for Nextcloud)

MYSQL_ROOT_PASSWORD=changeme MYSQL_DATABASE=nextcloud MYSQL_USER=nextcloud

Nextcloud

NEXTCLOUD_ADMIN_USER=admin # you can change it NEXTCLOUD_ADMIN_PASSWORD=changeme

Portainer

Please ensure you encrypt your password first using this command:

docker run -it --rm --entrypoint htpasswd ubuntu/apache2 -nbB admin your_password | cut -d ":" -f 2 | sed -e s/\$/>

PORTAINER_ADMIN_PASSWORD=$$**

Flood username declared in deluge RPC daemon

FLOOD_PASSWORD=changeme # Flood Password for Deluge RPC daemon FLOOD_AUTOCREATE_USER_IN_DELUGE_DAEMON=false

CALIBRE_PASSWORD=mycalibrepassword

Wireguard custom endpoint

WIREGUARD_ENDPOINT=svdcvdcvx # Wireguard endpoint WIREGUARD_PORT=51820 WIREGUARD_PUBLIC_KEY=dsvdv WIREGUARD_PRIVATE_KEY=vsdvdsv WIREGUARD_ADDRESS=dsvdvdxc # Wireguard LAN address WIREGUARD_ALLOWED_IPS=xxx.xxx.xxx.xxx

if I use the httpOnly settings - everything works fine

however, after turning on VPN, there is no connection to Deluge i jdownloader - Bad Gateway In docker ps -a it is still as created not started