Skip to content

RaymondTheBrave0/nextcloud-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nextcloud Self-Hosting Setup

This repository contains documentation and scripts for setting up a self-hosted Nextcloud instance at nextcloud.rtbsoftware.org.

Overview

DNS Configuration

Current DNS Records at Porkbun

The following A records need to be configured in the Porkbun DNS management panel:

  1. 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)
  2. Nextcloud Subdomain

    • Type: A
    • Host: nextcloud
    • Answer: 145.40.129.152
    • TTL: 600 (10 minutes for easier updates with dynamic IP)

Steps to Configure in Porkbun

  1. Log in to your Porkbun account
  2. Navigate to Domain Management
  3. Click on rtbsoftware.org
  4. Go to DNS Records
  5. Delete any existing A records for @ and nextcloud
  6. Add the new A records as specified above
  7. Save changes

Router Configuration

Port Forwarding Requirements

Configure your router to forward the following ports to your Nextcloud server:

  1. HTTP Traffic

    • External Port: 80
    • Internal Port: 80
    • Protocol: TCP
    • Internal IP: [Your Nextcloud server's local IP]
  2. HTTPS Traffic

    • External Port: 443
    • Internal Port: 443
    • Protocol: TCP
    • Internal IP: [Your Nextcloud server's local IP]

Router Setup Steps

  1. Access router admin panel (typically http://192.168.1.1)
  2. Navigate to Port Forwarding or Virtual Server section
  3. Create the port forwarding rules as specified above
  4. Save and apply changes
  5. May need to restart router for changes to take effect

Dynamic DNS Updates

Since you're using a dynamic IP address, you'll need to keep the DNS records updated when your IP changes.

Automatic Update Methods

  1. Porkbun API Script - See scripts/update-dns.ps1
  2. Manual Check Script - See scripts/check-ip.ps1

Porkbun API Setup

  1. Enable API access for your domain in Porkbun
  2. Generate API key and secret key
  3. Store credentials securely (never commit to git)
  4. Use the update script to automatically update DNS records

DNS Propagation

After making DNS changes:

  1. Changes typically take 5-30 minutes to propagate
  2. Use nslookup to verify DNS changes:
    nslookup rtbsoftware.org
    nslookup nextcloud.rtbsoftware.org
  3. Clear local DNS cache if needed:
    ipconfig /flushdns

Security Considerations

  1. Use HTTPS only (get SSL certificate via Let's Encrypt)
  2. Configure firewall rules on Nextcloud server
  3. Regular security updates
  4. Strong passwords and 2FA
  5. Regular backups

Next Steps

  1. ✅ Configure DNS records at Porkbun
  2. ⏳ Set up router port forwarding
  3. ⏳ Install and configure Nextcloud
  4. ⏳ Obtain SSL certificate
  5. ⏳ Set up automatic DNS updates
  6. ⏳ Configure backups

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published