hera icon indicating copy to clipboard operation
hera copied to clipboard

Unable to parse hostname https://domain.net.za: tld not found

Open WilliamStam opened this issue 6 years ago • 2 comments
trafficstars

seems that if the domain (in my case something like home.net.za) results in the above error.

hera               | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
hera               | [s6-init] ensuring user provided files have correct perms...exited 0.
hera               | [fix-attrs.d] applying ownership & permissions fixes...
hera               | [fix-attrs.d] 01-log-permissions: applying...
hera               | [fix-attrs.d] 01-log-permissions: exited 0.
hera               | [fix-attrs.d] done.
hera               | [cont-init.d] executing container initialization scripts...
hera               | [cont-init.d] 01-setup-logs: executing...
hera               | [cont-init.d] 01-setup-logs: exited 0.
hera               | [cont-init.d] 02-symlink-certs: executing...
hera               | [cont-init.d] 02-symlink-certs: exited 0.
hera               | [cont-init.d] done.
hera               | [services.d] starting services
hera               | [INFO] Hera v0.2.4 has started
hera               | [INFO] Found certificate: domain.net.za.pem
hera               | [services.d] done.
hera               | [INFO] Hera container found, connecting to e6d474a.......
hera               | [ERROR] Unable to parse hostname https://pihole.domain.net.za: tld not found
hera               | [INFO] Hera is listening

my docker compose: (${DOMAIN} is basicaly just my domain as in domain.net.za)

pihole:
      container_name: pihole
      image: pihole/pihole
      ports:
         - 53:53
         - 53:53/udp
         - 67:67/udp
         - 8081:80
      environment:
         TZ: ${TZ}
         WEBPASSWORD: stars
         ServerIP: 192.168.0.10
         PROXY_LOCATION: pihole
         VIRTUAL_HOST: pihole.${DOMAIN}
         VIRTUAL_PORT: 80
      volumes:
         - /storage.config/pihole:/etc/pihole/
         - /storage.config/dnsmasq:/etc/dnsmasq.d/
         - /storage.config/05-lan.conf:/etc/dnsmasq.d/05-lan.conf
      dns:
         - 127.0.0.1
         - 1.1.1.1
         - 8.8.8.8
      cap_add:
         - NET_ADMIN
      restart: unless-stopped
      labels:
         - hera.hostname=pihole.${DOMAIN}
         - hera.port=80

   hera:
      image: aschzero/hera
      container_name: hera
      volumes:
         - /var/run/docker.sock:/var/run/docker.sock
         - /storage.config/hera/certs:/certs
         - /storage.config/hera/logs:/var/log/hera

also +1 to the idea of being able to configure it directly. like set up hostdomain in the block and then use labels for subdomains or folders?

WilliamStam avatar Apr 29 '19 16:04 WilliamStam

Hi @WilliamStam a new version was just released that should fix this issue, please pull the latest image and let me know how it works for you. Thanks!

aschzero avatar May 27 '19 23:05 aschzero

Thanks. Had to move onto traefik tho. Got everything working after a massive fight. Not keen on touching that box for a while :P Hera was my first choice tho so might test it out.

On Tue, 28 May 2019, 01:20 Andrew Schaper, [email protected] wrote:

Hi @WilliamStam https://github.com/WilliamStam a new version was just released that should fix this issue, please pull the latest image and let me know how it works for you. Thanks!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/aschzero/hera/issues/3?email_source=notifications&email_token=AABMUEFCELTTVKJCO4RJSU3PXRUDDA5CNFSM4HJE2JC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWKTYIA#issuecomment-496319520, or mute the thread https://github.com/notifications/unsubscribe-auth/AABMUEE3WPDPWITC2BRSFYLPXRUDDANCNFSM4HJE2JCQ .

WilliamStam avatar May 28 '19 05:05 WilliamStam