
Keeping files backed up and accessible across devices is easier with a network-attached storage (NAS) device. It stores your files on your network, but it can also run services that manage passwords, back up phone photos, and automate your home. SpaceRex breaks down five uses, including hosting a custom website and running a local DNS server that can block ads and give your services easy-to-remember names. Read on to see how these uses work and what you need to run them on your NAS.
TL;DR Key Takeaways :
- Host a custom website: Claude Code can generate the code, while the NAS runs the site. Django is recommended for its built-in authentication, database and security features.
- Run a password manager: Bitwarden or the free, self-hosted Vaultwarden can run in Docker. SpaceRex recommends Vaultwarden for getting started but prefers paid Bitwarden for passwords because of its audits.
- Automate the home: Homebridge connects devices to Apple HomeKit, while Home Assistant supports broader automation. Home Assistant is generally recommended to have its own virtual machine and network interface because of its networking and USB needs.
- Manage and back up photos: Immich can back up phones and organize photos on a NAS, independently of or alongside cloud services. Synology Photos is a native option for Synology owners.
- Run a DNS server: A local resolver such as Pi-hole can provide names for NAS services and block ads. A second DNS server is recommended to preserve internet access when the NAS is unavailable.
1. Host a Website
You can run a custom website on a NAS for tasks such as employee time-card entries or personal life management. Claude Code can generate the site’s code, while the NAS keeps the finished site running and available for backup. You could potentially build the other four uses by asking AI, too.
Django is a recommended foundation for an AI-built site because AI can choose the easiest route to a task without putting security first. Django includes features for database entry, username-and-password authentication, and protection against cross-site scripting. AI can then write database models and other code.
AI can also write security-related components itself, but it can make mistakes. Repeatedly reinventing website components with AI can also cause instability.
You can build a site on a computer and run it on the NAS through Synology Web Station or a Docker Compose build file. Later, you can make code changes on the computer and push them to the server. As your requirements change, you can update the site without waiting for someone else to implement the changes.
Some coding knowledge helps with setup, and deployment can take more work than creating the site from reusable templates. Still, setup is attainable for a fairly tech-savvy user. Creating a Django site with reusable templates can take about an hour, depending on the use case. For more complex deployments, an existing fully built-out application can save work on components that have already been developed.
2. Run a Password Manager
Bitwarden and Vaultwarden let you store passwords on hardware you control. Bitwarden is open source, while Vaultwarden is a simplified fork you can self-host for free. SpaceRex recommends Vaultwarden for getting started but prefers paying for the full Bitwarden version for passwords because of the audits performed on it.
If you lose data because of a mistake involving your hardware, a self-hosted manager retains encryption. It also avoids the risk of a third party accidentally releasing that data, even in encrypted form; LastPass has been hacked twice.
Both options can run in Docker, and you can access them over a VPN or make them public behind a reverse proxy. Restricting access to a local network or VPN reduces exposure to attack.
You need a machine that runs Docker, an email server such as AWS SMTP, and a properly signed SSL certificate. The certificate helps protect the master password against a man-in-the-middle attack when you send it to the service.
Caddy with the Cloudflare extension is a recommended route for obtaining a certificate for this setup. After buying a domain, you can use a DNS challenge to obtain signed certificates without paying for them or opening the service to the internet. A private installation can also use certbot’s automatic renewal with a Cloudflare DNS challenge.
Here are more guides from our previous articles and guides related to NAS uses and management that you may find helpful.
- Build the Ultimate Homelab with These Essential Docker Applications
- Vaultwarden a Free Password Manager Without Monthly Subscription Fees
- Tailscale for Synology NAS: Secure Remote Access Made Simple
- How to store photos on a Synology NAS
- How to replace Dropbox with your home NAS remote access
3. Automate the Home
Homebridge brings devices into Apple HomeKit, making products such as UniFi Protect devices, third-party doorbells and smart thermostats accessible through Apple’s home platform. It can run in Docker and has plugins for connecting devices. Both Homebridge and Home Assistant have extensive plugins for a wide range of devices, and integrations may exist even for devices without an API.
Home Assistant is another option if you want automation beyond the Apple ecosystem. Its plugins bring systems together, and its automations can act without a manual request. If Home Assistant cannot automate something, it probably cannot be automated in general.
For example, an automation can turn off PoE power on a UniFi switch for inward-facing cameras when it detects a family member’s phone at home. That guarantees the cameras cannot record while unpowered.
You can run Home Assistant as a Docker container or a virtual machine, with pre-built virtual-machine images available to import. Pretty much everything in Home Assistant can work with standard Docker, though it is probably the only use listed here that is better suited to a virtual machine than a container.
A virtual machine can make sense because of Home Assistant’s networking and USB needs. Networking with Zigbee, Z-Wave and multicast protocols is more complex in Docker, so Home Assistant is generally recommended to have its own virtual machine and network interface.
4. Manage and Back Up Photos
Immich is a highly extensible, self-hosted photo manager that can back up your phone and display its photos. It supports collections, AI photo detection and sharing with other people while you retain control of the images. You can run it through Docker on a simple NAS.
Immich can host photos instead of relying on Google Cloud or Apple iCloud, and you can expose it to the internet for phone backups. Google Photos and iCloud can make data difficult to extract through ecosystem lock-in, so a user-controlled backup can make leaving easier.
A self-hosted copy can also sit alongside an existing cloud library. Even if iCloud or Google Photos remains your primary repository, keeping a backup on your own hardware is recommended.
For Synology owners, Synology Photos provides a native option that works with a local user account and requires nothing else to be installed. Immich is an option for running photo management on other NAS hardware.
5. Run a DNS Server
A DNS server can connect the other NAS services under names, so you do not need to remember their IP addresses and ports. Pretty much any NAS can run a DNS resolver. Your router can direct network devices to the NAS for address lookups, and locally cached DNS queries can make later queries faster and speed up internet traffic.
BIND is a built-in DNS server, while Pi-hole is an ad-blocking DNS server that you can deploy on a NAS. A local resolver can also hold records for services such as Home Assistant.
A reverse proxy can use those names to send requests to the right container, such as Home Assistant or Bitwarden, without requiring you to remember each service’s address and port. You can choose any available domain name when getting started, and domains are inexpensive. You can also use a domain you own to obtain signed SSL certificates, including when the services are not publicly accessible.
If your NAS is the primary resolver, a second DNS server is recommended. A NAS update or an error can otherwise interrupt internet access when DNS goes down. A Raspberry Pi can run that second server.
These uses require a NAS that can run the relevant app, Docker container or virtual machine; Docker on a Windows NAS runs in a Linux virtual machine. Home Assistant may need its own network interface and virtual machine because of its networking requirements. Bitwarden and Vaultwarden also need an email server and a signed SSL certificate, while a primary NAS-based DNS server needs a second resolver to avoid an outage when the NAS is unavailable.
Media Credit: SpaceRex
Disclosure: Some of our articles include affiliate links. If you buy something through one of these links, Geeky Gadgets may earn an affiliate commission. Learn about our Disclosure Policy.