Set up a domain with Nextcloud?

Hey,

I recently set up a Nextcloud at my home and now wanted to set up a domain for it. I already purchased one through Cloudflare and, in my opinion, have connected it correctly to my server. Image:

For IPV4, I entered my server's local IP address. (I'm not sure if this setting is correct.)

I've already opened the two ports. Image:

And I've modified the Nextcloud.conf accordingly. Image:

And finally, I changed the config.php file. Image:

So what did I do wrong.

Thanks for the help.

(2 votes)
Loading...

Similar Posts

Subscribe
Notify of
27 Answers
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Webclon
11 months ago

Firewall already checked? Are the ports released by Nextcloud?

Otherwise, check the conf and .config again if everything has been entered correctly

Webclon
11 months ago

Under Linux:

sudo ufw status

You should add rules for the ports 80 u. 443 speak http/https

Please google!

If you use Windows FW under Windows Defender to set these rules

MinecollYT
11 months ago

The IPv4 you enter is a private/local address and will never be accessible via the Internet. I don’t know why nobody else noticed this.

To make them accessible from the outside, buy or rent an ÖDIP or an ÖSIP at your ISP. With an ÖDIP you can use this with a reverse proxy like Traefik DynDNS to constantly update the IP at CF. You don’t need it with an ÖSIP.

In general, I’d rather rent a VPS for something like Contabo, Hetzner… Are just a few euros a year but for this you save the stress

MinecollYT
11 months ago
Reply to  MinecollYT

And by the way, look at Docker. This will greatly simplify your life;)

MinecollYT
11 months ago

Yes, if you really only have a PHP application “sweet”. However, since he is 16 and probably just a small HomeLab is building on it (at least it seems like that), I wanted to make it easier for him to make his future. If you have a basic framework with Traefik, you can deploy almost any application within minutes. Brings him much further in the future than the old basic concept

Thomasg
11 months ago

Sorry, but if you want to run a single php application, docker makes everything much more complicated. You have to understand the concept correctly and how the applications can be configured in the container and then extra containers for reverse proxy, which are also more complicated to configure. And then this network stack. Once you have internalized it all and created a basic infrastructure, it may be easier, but for someone who creates his first web server, it is too complicated.

MinecollYT
11 months ago

I’m getting used more and more and I was thinking just like you. Take a look at Docker-Compose with a simple reverse proxy setup. Trust me, it really makes everything really easier even if the start is fucking annoying

nichtsagender
11 months ago

You have to enter your public Ipv4/6, otherwise it won’t work with the A record

The Local IP only works on the local network.

nichtsagender
11 months ago

Then it would work.

TheQ86
11 months ago

But then you have to play/configure it on the web server. You need the certificate and its private key.

TheQ86
11 months ago

Do you have valid SSL certificates? You need it for ne .dev domain. Your Apache Config doesn’t look like it.

nichtsagender
11 months ago

What’s wrong?

HardwareFreak3
11 months ago

Your domain is cloud without tld? I doubt it.

Generally too few details.

TheQ86
11 months ago

Your domain is cloud without tld?

In the config for the A record you only write the subdomain share.

As seen in the pictures, the domain is called something with .dev

.dev is, by the way, a special domain for which you need SSL valid certificates so that the browser accepts it.

Furthermore, it is bad practice to write private IP addresses in public domains. It was going, but again makes handling difficult for the SSL certificates.

Better would be, the questioner would use a DynDNS service and then let the domain point to its public IP. This could also make it very easy to issue Let’sEncrypt certificates.

Isn’t that trivial without any expertise.

HardwareFreak3
11 months ago

It is insulting as you compare a qualitatively high-quality response with a low-quality qualitative and presuppose this quality. If I ask you, “Are you stupid?” Is that clearly mean evil and not just a friendly demand. Whether you were aware or not.

Then other people call toxic clear.

HardwareFreak3
11 months ago

If you mean to insult this from because of Chat GPT quality then ask ChatGPT and you’ll realize very quickly the most of the information in the area is wrong.

TheQ86
11 months ago

No. Look at ChatGPT answers that are different.

I just know what I’m writing and I’m from the subject.