Commit aedc0ffe authored by Aral Balkan's avatar Aral Balkan
Browse files

Install script now sets up read-only public rsync daemon to allow downloads of the archive.

parent 61d24925
Pipeline #385 skipped
......@@ -151,7 +151,20 @@ sudo sed -i "s/{SERVER_NAMES}/${serverName}/g" /etc/nginx/sites-available/http.c
sudo sed -i "s/{SERVER_NAMES}/${serverName}/g" /etc/nginx/sites-available/https.conf
# Create the home directory
mkdir /home/archive
mkdir /home/ubuntu/archive
# Set up rsync
# Copy over the rsync configuration file.
sudo cp ./rsync/rsyncd.conf /etc/rsyncd.conf
# Start the rsync daemon.
rsync --daemon
# Make rsync start on boot.
sudo sed -i "s/RSYNC_ENABLE=false/RSYNC_ENABLE=true/g" /etc/default/rsync
# Configure TLS using Let’s Encrypt
pid file = /var/run/
lock file = /var/run/rsync.lock
log file = /var/log/rsync.log
path = /home/ubuntu/archive
comment = HTTP Archive
read only = true
timeout = 300
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment