Jump to content

Setting up Cloudflare > Nginx > NextClould gives DNS_PROBE_FINISHED_NXDOMAIN


Recommended Posts

Hi All

 

I don't really think this is a UNRAID problem, but it is running on my fairly new unraid server, so I'm trying this forum for help :)

I've tried follow mr. RaidOwls video on how to set this up

 

 

But I'm not quite there, and not sure what is going on. I think the problem is in my Nginx, but now sure. 

 

I'm trying to expose my NextCloud container to the internet through this url: ncloud.rkhelmet.dk

 

Cloudflare Settings

my public IP is 93.160.28.168

image.thumb.png.1a3e8aece6172b197c15a8c76a17073e.png

TLS

SSL/TLS encryption mode is Full 

I've tried setting it to Full (Strict) 

image.thumb.png.11b88cc26e33698a0b9e100a6b919e9f.png

 

Always Use HTTPS = true

image.thumb.png.d6aa4074f2921246e7e570ba30befed7.png

 

I also did the API Token thing he mentions.. 

Router Settings

forwarded port 80 and 443 to my Nginx proxy container IP 192.168.0.42

image.png.01c3d009cc9855557f4951c8c7144791.png

I had a little problem here, I had to set a static IP on the Nginx container, because Docker gave it 192.168.0.2, witch is out of allowed range of my router, so the router gave me an error when trying to forward to 192.168.0.2, so I set the IP to 192.168.0.42

 

Nginx docker settings:

image.thumb.png.160db6f96a500e0f4bbd9cc0e132d20d.png

Here i notice that RaidOwl mention something about "exposed Ports" but i don't really see anything here about exposed ports. 

here is what i see in the docker view

image.png.6e24b9f3e97b1c72d40afc449409522b.png

 

Nginx Settings

I can access and use Nginx locally on 192.168.0.42:81 

image.thumb.png.f14fbef35cd0d0828ac5c5619225425f.png

 

I have one Proxy Host ncloud.rkhelmet.dk that point to my nextCloud container 192.168.0.110:8666

image.thumb.png.43779f11b79d9110d6d236216ba77dd2.png

image.png.79046ae4e1c36ffef7f05a0ae8c7e4d7.png

 

 

NextCloud Docker Settings

image.thumb.png.5ac40511dbe50d38680fe733519562df.png

NextCloud settings:

not really any settings to show, but it is running and I can use it locally on 192.168.0.110:8666

image.thumb.png.e2a12e782414f4c6a83522db9ae1c336.png 

 

What happens ?

When i go to ncloud.rkhelmet.dk i get this error page

image.thumb.png.a9aa509ecab16186703eaf619dfe9d57.png

 

I feel like i get different errors, sometimes I also see a less "pretty" error page saying 

DNS_PROBE_FINISHED_NXDOMAIN

 

---- Edit Start ----

tried running this command in a unraid terminal

docker ps

image.thumb.png.a99a4609a05459f59ece06d28ba8f0ce.png

I notice that Ports is blank for the nginx ??

also notice that nextCloid is using port 80

hmmm

---- Edit End ----

 

 

Can anyone help me figure out what I need to do to fix this ?

Thanks :D

 

 

image.png

image.png

image.png

image.png

Edited by Simon.B
removed extra screenshots
Link to comment

Hi!

 

I can't really help you with the reverse proxy etc. But try to disable cloudflare proxy temporarily. I also had the problem that cloudflare would not work and throw the exact same Host Error from your screenshot. Once proxy was disabled it worked.

 

I strongly recommend you to use CloudflareD docker from the Apps in Unraid, then you don't need a reverse proxy.

 

I did this for over 6 different services. You setup the ZeroTrust Tunnel in Cloudflare, add the domain (nextcloud.whatever.com) and map it to your local unraid IP with the nextcloud port. Its probably the most convienent way which requires almost zero configuration. 

 

 

Btw: do yourself a favor and remove the domain name + IP from the post for security reasons!!

Link to comment
  • 9 months later...
On 5/7/2023 at 11:53 AM, XiLENE1337 said:

Hi!

 

I can't really help you with the reverse proxy etc. But try to disable cloudflare proxy temporarily. I also had the problem that cloudflare would not work and throw the exact same Host Error from your screenshot. Once proxy was disabled it worked.

 

I strongly recommend you to use CloudflareD docker from the Apps in Unraid, then you don't need a reverse proxy.

 

I did this for over 6 different services. You setup the ZeroTrust Tunnel in Cloudflare, add the domain (nextcloud.whatever.com) and map it to your local unraid IP with the nextcloud port. Its probably the most convienent way which requires almost zero configuration. 

 

 

Btw: do yourself a favor and remove the domain name + IP from the post for security reasons!!

sure to the dockers and all its easy and fine, but how do you forward that same cloudflared tunnel to unraid itself ?
i had it working in the cloudflared app via home assistant. but now im trying to fully move to unraid. Everything works, except a tunnel to unraid itself, not even the server addon generated url's work

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...