This is my Raspberry Pi 4 i use as an Server.
Since i don't use the HDD slot (for the Unifi Protect Cameras) of my UDM-Pro router anyway, i thought it might be really cool idea to put in a mini server with an SSD.
This is an drop in replacement. Instead of an HDD you put in this pi server. Only the SATA power comes from the router. Other than that the pi is a complete standalone device and needs to be connected with a short LAN-cables to one of the ports of the router (unless you want to use wifi)
It is neatly packed inside the slot. Powered by the router itself and thus always online when the router is online itself hosting my important services other stuff relies on. And its clutter free with not even a power cable showing.
Currently my Pi runs nginx, pihole, wireguard, smb, portainer, Home Assistent, synchthing, nextcloud, sharry. Depending on your data needs, this could be your whole low power NAS server. I put most of the important stuff that needs to be online all the time on there and keep stuff like plex, VMs and other heavy duty stuff on my seperate server.
The Sled/tray should be compatible with all UDM-Pro versions including the SE as well as the UNVR and UNVR_Pro as they all use the same HDD Caddie design.
Front Plates/Cover Versions:
Regarding the Front Plate you can choose what and how many ports you want to have.
For example if you don't need the HDMI port for a headless server, you can choose a cover without it and not include the cable.
I recommend not going for the MicroSD and the FiberLED. So probably "C" is the most usefull to you
A - All ports: PowerSW, HDMI, USB-c, microSD, USB ribbon, Fiber-LED
B - All Usefull: PowerSW, HDMI, USB-c, microSD, USB ribbon missing: FiberLED
C - Main Usefull: PowerSW, HDMI, USB-c, USB ribbon missing: FiberLED, microSD
D - Headless: PowerSW, USB-c, USB ribbon missing: FiberLED, microSD, HDMI
E - Essential: PowerSW, USB ribbon missing: FiberLED, microSD, HDMI, USB-c
F - Essential+HDMI: PowerSW, HDMI, USB ribbon missing: FiberLED, microSD, USB-c
BoM:
It will prob. cost around 85€ when chosen everything, without the raspberry pi 4 and the SSD itself.
With a 70€ pi4 with 4GB and 70€ ssd and print, screws, microSD, Cables etc. the total will probably a pessimistic estimate of 250€.
- Sata Power Cabel (male)
I used an generic Cabel i had left in my PC Mainboard or PSU box.
Else buy something like this:
https://www.amazon.de/dp/B09D8122GZ/
https://www.ebay.de/itm/363971162812
or anything else that looks like that. Only the Sata connector part matters. Not the other end.
- Power toggle Switch
I purchased a bag of those:
https://www.amazon.de/gp/product/B07QB22J62/
You might be able to find a smaller pack or different ones
- Buck Converter
I used AZDelivery XL4015 DC-DC Step Down Buck Converters. The newer ones look different so idk (other manufacturers. same design)
those perhaps:
https://www.ebay.de/itm/115763649672
https://www.amazon.de/dp/B07XXSQ327/
https://www.amazon.de/dp/B0C6R18GKB/
https://www.amazon.de/dp/B08FMFKJKK/
- HDMI
I bought an now unavailable "Afunta 90 Grad Micro-HDMI-Rechts-Richtung Stecker auf HDMI Buchse Adapter Kabel, L?nge: 17cm" from amazon.
I recommend buying 2 HDMI cabels as they break quite easy and are fragile.
And you will be bending the cable hard as well as might be cutting plastic from the shell to slim it down.
This might be a suitable right-angle 15-17cm replacement cables:
https://de.aliexpress.com/item/1005002200773253.html
https://de.aliexpress.com/item/1005005773308911.html
https://de.aliexpress.com/item/1005005506878455.html
https://www.ebay.de/itm/266357594854
https://www.ebay.de/itm/266037792225
and so on. They all use the same picture. One factory in china probably makes all of them. lol
You might also be able to use an short non angled Cabel like this: (no guarantee whatsoever)
https://www.berrybase.de/micro-hdmi-adapterkabel-d-stecker-a-buchse-15cm-schwarz
- USB-C
I bought and used this cable
https://www.amazon.de/gp/product/B082B2FTLQ/
- MicroSD
https://de.aliexpress.com/item/4001203139929.html
If you really want to go for this be aware that they might not work or break easy when flex cable is bend.
It was a pain and i gave up and usb booted after the pi's microsd port broke unrelated to this.
It might be not worth it to route the microSD to the front
- USB 3.0 Flex Cable
https://de.aliexpress.com/item/4000318287122.html
Choose S3-S4 and 15cm in length
- M.2 PCB USB Adapter
https://www.amazon.de/dp/B09H6K3TTQ?th=1
- SSD
You can use any SATA or MVME SSD. Samsung is usually really good.
I literally chose the cheapest 2TB SSD that happened to be this for 69€:
https://www.mindfactory.de/product_info.php/2TB-Lexar-NM620-M-2-2280-PCIe-3-0-x4-3D-NAND-TLC--LNM620X002T-RNNNG-_1480952.html
- Rpi Case
I used the BerryBase Armor Case for the Pi4 with fans. The fans do nothing as they are covered from the top and basically choke.
Go for the fanless version with more thermal mass
https://www.berrybase.de/armor-gehaeuse-fuer-raspberry-pi-4-schwarz
https://www.amazon.de/dp/B09KC81JLM/
https://www.ebay.de/itm/113838220171
I will update Text soon to include build instructions and more
The author marked this model as their own original creation.