How can I secure connection to nextcloud?

Guides and tutorials for various stuff. Posted by DietPi users.
User avatar
Joulinar
Posts: 2044
Joined: Sat Nov 16, 2019 12:49 am

Re: How can I secure connection to nextcloud?

Post by Joulinar »

Opening ports to the internet would need to be done on your internet router. The description above is describing how to create SSL certificates for a web server like lighttpd or nginx running port 80/443. This will enable to access applications using standard web server. Thinks like Plex and Sonarr using it's on web server, running on different ports. Therefore they will not be reachable. Access would need to be configured separately on your internet router be opening respective ports.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Mordog
Posts: 13
Joined: Fri Aug 24, 2018 10:18 am

Re: How can I secure connection to nextcloud?

Post by Mordog »

stuck at point 10.
can access nextcloud from internet and lan via app and browser with noip.
But every time i try to run dietpi-letsencrypt the following errormassage appears.

Code: Select all

- The following errors were reported by the server:

   Domain: xxxxxxx.xxxxx.org
   Type:   None
   Detail: DNS problem: NXDOMAIN looking up A for xxxxxx.xxxxx.org -
   check that a DNS record exists for this domain
[FAILED] CertBot failed with error code (1), please check its terminal output. Aborting...
any ideas what i do wrong?
(pihole/nextcloud/unbound/noip installed)
User avatar
Joulinar
Posts: 2044
Joined: Sat Nov 16, 2019 12:49 am

Re: How can I secure connection to nextcloud?

Post by Joulinar »

looks like your DDNS domain is not existing as you get a NXDOMAIN. LetsEncrypt is trying to get an IPv4 address for your domain but without success.

Code: Select all

   Detail: DNS problem: NXDOMAIN looking up A for xxxxxx.xxxxx.org -
   check that a DNS record exists for this domain
I would recommend to login to your NoIP account and check of your domain is registered correctly
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Mordog
Posts: 13
Joined: Fri Aug 24, 2018 10:18 am

Re: How can I secure connection to nextcloud?

Post by Mordog »

Joulinar wrote: Sat Aug 29, 2020 11:05 pm I would recommend to login to your NoIP account and check of your domain is registered correctly
as far as i can tell should be registered correctly.
tempsnip.png
User avatar
Joulinar
Posts: 2044
Joined: Sat Nov 16, 2019 12:49 am

Re: How can I secure connection to nextcloud?

Post by Joulinar »

hi, can you check if your DNS record is found by global DNS server?

https://dnschecker.org/

Probably it was taking time to be published correctly
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Mordog
Posts: 13
Joined: Fri Aug 24, 2018 10:18 am

Re: How can I secure connection to nextcloud?

Post by Mordog »

thx Joulinar,

while typing the url in the dnschecker i realized i fucked up the domainname in dietpi-letsencrypt without seeing it.
tiny little typo.
so as most of the times the problem sits in front of the display.
Thanks for your time.
User avatar
Joulinar
Posts: 2044
Joined: Sat Nov 16, 2019 12:49 am

Re: How can I secure connection to nextcloud?

Post by Joulinar »

at least you found it :)
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply