+# Set file and folder permissions
+chown www-data:www-data -R bootstrap/cache public/uploads storage && chmod -R 755 bootstrap/cache public/uploads storage
+
+# Add nginx configuration
+curl https://raw.githubusercontent.com/BookStackApp/devops/master/config/nginx > /etc/nginx/sites-available/bookstack
+sed -i.bak "s/bookstack.dev/$DOMAIN/" /etc/nginx/sites-available/bookstack
+ln -s /etc/nginx/sites-available/bookstack /etc/nginx/sites-enabled/bookstack
+
+# Restart nginx to load new config
+service nginx restart