This repository contains documentation and scripts for setting up a self-hosted Nextcloud instance at nextcloud.rtbsoftware.org.
- Domain: rtbsoftware.org
- Nextcloud URL: https://nextcloud.rtbsoftware.org
- DNS Provider: Porkbun
- Public IP: 145.40.129.152 (Dynamic)
The following A records need to be configured in the Porkbun DNS management panel:
-
Root Domain
- Type: A
- Host: @ (or leave blank for root)
- Answer: 145.40.129.152
- TTL: 600 (10 minutes for easier updates with dynamic IP)
-
Nextcloud Subdomain
- Type: A
- Host: nextcloud
- Answer: 145.40.129.152
- TTL: 600 (10 minutes for easier updates with dynamic IP)
- Log in to your Porkbun account
- Navigate to Domain Management
- Click on rtbsoftware.org
- Go to DNS Records
- Delete any existing A records for @ and nextcloud
- Add the new A records as specified above
- Save changes
Configure your router to forward the following ports to your Nextcloud server:
-
HTTP Traffic
- External Port: 80
- Internal Port: 80
- Protocol: TCP
- Internal IP: [Your Nextcloud server's local IP]
-
HTTPS Traffic
- External Port: 443
- Internal Port: 443
- Protocol: TCP
- Internal IP: [Your Nextcloud server's local IP]
- Access router admin panel (typically http://192.168.1.1)
- Navigate to Port Forwarding or Virtual Server section
- Create the port forwarding rules as specified above
- Save and apply changes
- May need to restart router for changes to take effect
Since you're using a dynamic IP address, you'll need to keep the DNS records updated when your IP changes.
- Porkbun API Script - See
scripts/update-dns.ps1
- Manual Check Script - See
scripts/check-ip.ps1
- Enable API access for your domain in Porkbun
- Generate API key and secret key
- Store credentials securely (never commit to git)
- Use the update script to automatically update DNS records
After making DNS changes:
- Changes typically take 5-30 minutes to propagate
- Use
nslookup
to verify DNS changes:nslookup rtbsoftware.org nslookup nextcloud.rtbsoftware.org
- Clear local DNS cache if needed:
ipconfig /flushdns
- Use HTTPS only (get SSL certificate via Let's Encrypt)
- Configure firewall rules on Nextcloud server
- Regular security updates
- Strong passwords and 2FA
- Regular backups
- ✅ Configure DNS records at Porkbun
- ⏳ Set up router port forwarding
- ⏳ Install and configure Nextcloud
- ⏳ Obtain SSL certificate
- ⏳ Set up automatic DNS updates
- ⏳ Configure backups