What's the upload speed of your home internet connection? You may find paying for more storage gives better performance for clients.
Restricting in comming connections to a single IP address adds some security but it isn't the oinly thing you have to worry about. Ask your favourite search engine for more info.
Now, some other things to consider:
Option 1 (Your webhoster allows mounting, allows running a VPN server, your LAN's upload bandwidth is adequate):
Option 2 (Your webhoster does not allow mounting, does not allow running a VPN server, your LAN's upload bandwidth is adequate):
Option 3 (Your LAN's upload bandwidth is inadequate):
Option 4:
Restricting in comming connections to a single IP address adds some security but it isn't the oinly thing you have to worry about. Ask your favourite search engine for more info.
Now, some other things to consider:
- Does you home LAN have a static IP address? If not you'll need a dynamic DNS service.
- Does your webhoster allow you to mount a remote file system into its local file system?
- Does it let you run arbitary services on the server (not the web server but things like a VPN server or client)?
- I'm not familiar with Nextcloud (don't use it, don't see the need for it when I run smb of nfs over a vpn tunnel) but does it allow access of remote file systems without them first being mounted into teh server's filesystem?
- How do you expect to make the contents of the Pi available to Nextcloud on the web server? The answer may depend on answers to some of the above.
- ...
Option 1 (Your webhoster allows mounting, allows running a VPN server, your LAN's upload bandwidth is adequate):
- Run a VPN server on the Nextcloud box.
- Configure the local Pi:
- Add and mount the additional storage. Use a Linux files system and mount using fstab not the desktop's automounter
- Export that storage over nfs or smb (nfs is better if the webserver can handle it).
- Have the Pi connect to the web server over a VPN tunnel (Pi as client not server - this help with dynamioc IP problems)
- Have the webserver mount the Pi's exported storage.
- Add that to Nextcloud.
Option 2 (Your webhoster does not allow mounting, does not allow running a VPN server, your LAN's upload bandwidth is adequate):
- Ditch the webserver.
- Run the Nextcloud instance on your Pi.
- For security, run a VPN sever on the Pi and only allow incoming connection through that.
- Deal with issues such as a dynamic public IP address on your router as necessary
Option 3 (Your LAN's upload bandwidth is inadequate):
- Rent more storage space from your webhoster
Option 4:
- Rent a VPS/VS rather than just webhosting
Statistics: Posted by thagrol — Thu Dec 07, 2023 1:19 am