This repository allows deploying a GhostFS Server and Auth Server, and a GhostFS Auth Backend.
- Clone this repository and
cd
into the cloned folder. - Copy the template file:
In the newly created file, update the
cp auth_backend/auth_backend.env.template auth_backend/auth_backend.env
domain_name
to where the GhostFS Auth Backend will be hosted. - To generate a self-signed SSL certificate and key for the GhostFS Server running on the same
domain_name
as above, execute the following command:./gen_cert.sh <domain_name>
- If needed, edit the
.env
to update the version of GhostFS Server and Auth Server. - To install a GhostFS server and a GhostFS Auth Backend running on PM2 with a Caddy reverse proxy, execute the following command:
When requested, enter a username and password for the GhostFS Auth Backend
./install_ghostfs.sh
htpsswd
. - Verify that everything is running correctly using:
sudo pm2 status
- Verify that there are no errors in the logs of each process:
sudo pm2 logs <id>
The GhostFS Auth Backend API is available at https://domain_name:CADDY_PORT/fs/ok
The GhostFS Server is available at domain_name:3444
The GhostFS Auth Server is available at domain_name:3555
The served data is stored in /mnt/nextcloud-dp/nextcloud/data
To update GhostFS Server and Auth Server to another version, edit .env
with the new version number, then execute:
./get_ghostfs.sh
The GhostFS Server, Client and Auth Server are developed by Pouya Eghbali and Nathalie Casati as part of Ako Grid.
This research was supported by the EBRAINS research infrastructure, funded from the European Union’s Horizon 2020 Framework Programme for Research and Innovation under the Specific Grant Agreement No. 945539 (Human Brain Project SGA3).