First step for big review
This commit is contained in:
parent
7354192d94
commit
bc3f4e3591
22
README.md
22
README.md
@ -1,26 +1,24 @@
|
||||
# NAS Server
|
||||
|
||||
This repository contains files used to set up our NAS server on a freshly installed Armbian. Target is Bullseye.
|
||||
This repository contains files used to set up our NAS server on Debian. Target is Bullseye.
|
||||
|
||||
### Introduction
|
||||
The SBC used has a hard drive attached (SATA), which is the storage drive. This disk should be encrypted if needed.
|
||||
The idea is to provide the following features, chosen at install:
|
||||
* a web interface for file management with [filebrowser](https://github.com/filebrowser/filebrowser)
|
||||
* a DLNA server with MiniDLNA
|
||||
* a BitTorrent client with Transmission, which comes with a server web interface
|
||||
* an VPN client with OpenVPN
|
||||
* a FTP server with vsftpd
|
||||
|
||||
An FTP server is installed on the device, providing network access to authorized people.
|
||||
|
||||
### Setup
|
||||
##### Installation
|
||||
* `setup.sh` is a script automating the installation and configuration of required software.
|
||||
* `variables.conf.template` contains examples variables definitions, and should be copied locally to `variables.conf`
|
||||
(with any required modifications).
|
||||
* `srv-nas.mount` is a systemd unit which, when started, will try to mount DATA drive.
|
||||
##### DL server
|
||||
### Files
|
||||
* `transmission-daemon.service` is a replacement for default Transmission service file, with more settings.
|
||||
* `transmission-vpn.sh` is a script which checks if a VPN connection is active and stops Transmission otherwise.
|
||||
* `transmission-vpn.service` is a service unit for above script.
|
||||
* `transmission-vpn.timer` is a timer which runs regularly above script.
|
||||
* `variables.conf.template` contains examples variables definitions, and should be copied locally to `variables.conf`
|
||||
(with any required modifications).
|
||||
##### Installation
|
||||
* `install.sh` script copies Systemd units to their destination, with correct values.
|
||||
|
||||
### TODO
|
||||
* Add TLS cert generation to DL setup
|
||||
* RAS
|
||||
|
3
setup.sh
3
setup.sh
@ -81,9 +81,6 @@ set_vsftpd() {
|
||||
echo "nascrypt /dev/sda none noauto" >> /etc/crypttab
|
||||
sed -i -e "s/#write_enable=YES/write_enable=YES/g" /etc/vsftpd.conf
|
||||
sed -i -e "s/#utf8_filesystem=YES/utf8_filesystem=YES/g" /etc/vsftpd.conf
|
||||
# The two lines below set up TLS wrapping with a self-signed certificate, which causes issues with clients
|
||||
#sed -i -e "s/ssl_enable=NO/ssl_enable=YES/g" /etc/vsftpd.conf
|
||||
#openssl req -x509 -nodes -days 7300 -newkey rsa:2048 -keyout /etc/ssl/private/ssl-cert-snakeoil.key -out /etc/ssl/certs/ssl-cert-snakeoil.pem -subj "/C=/ST=/L=/O=/OU=/CN="
|
||||
}
|
||||
|
||||
# Only run if the user is root
|
||||
|
@ -1,10 +0,0 @@
|
||||
[Unit]
|
||||
Description=Mount NAS Volume
|
||||
# Below Requisite could be a Wants
|
||||
Wants=systemd-cryptsetup@nascrypt.service
|
||||
After=systemd-cryptsetup@nascrypt.service
|
||||
|
||||
[Mount]
|
||||
What=/dev/mapper/nascrypt
|
||||
Where=/srv/nas
|
||||
Options=rw,relatime
|
@ -2,6 +2,7 @@
|
||||
|
||||
# Copy this file as variables.conf, with the correct values
|
||||
|
||||
dl_server="no"
|
||||
filebrowser="yes"
|
||||
dlna_server="yes"
|
||||
dl_server="yes"
|
||||
ftp_server="no"
|
||||
upnp_server="no"
|
||||
|
Reference in New Issue
Block a user