Can't access TrueNAS after configuring ingress for apps

same99

Cadet
Joined
Nov 25, 2022
Messages
3
Hi guys,

Intro:
I have just done my first install of TrueNAS Scale as a VM and I have run into an issue I can't seem to resolve or find any information about it (not sure if my searching keywords are accurate).

NOTE:
my.domain.uk/domain.uk are not mine but used for reference.

Scenario:
I run a couple of apps on my TrueNAS Scale (VM) and I can access those via their subdomain + domain name/url (my.domain.uk for example), but I cannot reach my TrueNAS Scale UI on domain.uk (404 page not found). I had to change the ports 80 and 443 for the web GUI (ports are 81 & 444 now) for Treafik. I was able to reach TrueNAS from domain.uk before I configured ingress on my apps.

DNS + Port forward:
I have an A name record in my Cloudflare dns that points to my public address. Ports 80 and 443 TCP are forwarded to my TrueNAS IP.
CNAME records are in place for my subdomains so I can remote access my apps (this works).

Apps:
Apps are from TrueCharts (6 total).
Apps share the same IP with TrueNAS.
Minimal changes have been made to the default settings.

Traefik 2.9.5_16.0.3:
I haven't made made any changes to Traefik, not sure it is needed. I did change entrypoint ports to 80 and 443.

Question:
How do I configure TrueNAS/Traefik so I can access my TrueNAS via domain.uk while also accessing my apps via the subdomain my.domain.uk?

Side question:
Is Traefik even needed when using ingress?

Hopefully someone can help me out. If more info is required, please let me know.

Thanks in advance!


Kind regards,

Sam
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
Is Traefik even needed when using ingress?
It's Traefik that does ingress, so yes. And while you've been given the how-to, you haven't been given the "don't." The TrueNAS web UI is not designed or hardened to be exposed to the Internet, so it's strongly discouraged to do so.
 

same99

Cadet
Joined
Nov 25, 2022
Messages
3
It's Traefik that does ingress, so yes. And while you've been given the how-to, you haven't been given the "don't." The TrueNAS web UI is not designed or hardened to be exposed to the Internet, so it's strongly discouraged to do so.
Thanks for the heads up, I will probally end up accessing it via VPN then. I wanted to get it done for fun mostly.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
It's probably OK to do that as suggested in the how-to with an auth module in Traefik, but indeed a VPN provides more security.
 
Top