Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DNS Problem.. :| #47

Open
Qbaakr opened this issue Jul 9, 2023 · 2 comments
Open

DNS Problem.. :| #47

Qbaakr opened this issue Jul 9, 2023 · 2 comments

Comments

@Qbaakr
Copy link

Qbaakr commented Jul 9, 2023

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
Copy link
Owner

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
Copy link
Author

Qbaakr commented Oct 19, 2023

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

  • name: deluge
    enabled: true
    vpn: true
    traefik:
    enabled: true
    rules:
    - host: deluge.${TRAEFIK_DOMAIN}
    httpAuth: true
    internalPort: 8112
    # Uncomment to specify custom schme (http by default)
    # internalScheme: http
    # Uncomment to NOT generate LetsEncrypt certificate (useful for local domains)
    httpOnly: true
  • name: jdownloader
    enabled: true
    vpn: true
    traefik:
    enabled: true
    rules:
    - host: jdownloader.${TRAEFIK_DOMAIN}
    httpAuth: true
    internalPort: 5800
    httpOnly: true
  • name: gluetun
    enabled: true
    traefik:
    enabled: false
    rules: []

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants