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.
Firewall already checked? Are the ports released by Nextcloud?
Otherwise, check the conf and .config again if everything has been entered correctly
Where can I see if the ports of Nextcloud are released? And where can I find setting the firewall.
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
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
And by the way, look at Docker. This will greatly simplify your life;)
Until now, only had problems with Docker, I don’t dare to work with them again. I’ll try what you wrote, thank you
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
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.
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
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.
Okay, I’ve entered my public Ipv4.
Then it would work.
But then you have to play/configure it on the web server. You need the certificate and its private key.
I have selected the SSL certificate at cloudflare but if it worked I don’t know.
Do you have valid SSL certificates? You need it for ne .dev domain. Your Apache Config doesn’t look like it.
I cannot access the website, or it is not accessible to the website, but I can pin it.
What’s wrong?
Unfortunately not.
Your domain is cloud without tld? I doubt it.
Generally too few details.
What do you mean “without tld”? What details do you need?
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.
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.
It’s not an insult when you say something is written “like” chatgpt? Why are all people on this website so toxic?…
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.
Sry, just thought about this set: Better would be, the questioner would use a DynDNS service. But you didn’t speak directly to me, didn’t mean your content from the text.
No. Look at ChatGPT answers that are different.
I just know what I’m writing and I’m from the subject.
Did you write this with chat gpt haha. But thank you.