Multiple instances - 2langnic/GlobaLeaks GitHub Wiki
NOTE: This webpage is not updated and the multiple-instance method reasonably will not work. This method is not supported until official support for multiple instances is done.
This section show how to deploy multiple GlobaLeaks instances on the same workstation by explaining the script: create-gl-instance.sh
This guide assumes GlobaLeaks is installed systemwide as explained in Installation Guide. The script accepts three simple argument, two of these are required while one is optional:
-d: domain (e.g.: subdomain.domain.tld) [REQUIRED]
-p: port (e.g.: 8082) [REQUIRED]
-n: nodebase (e.g.: /var/subdomain.domain.tld) [OPTIONAL]
To use the script and deploy a new GlobaLeaks instance for domain leaks.example.org and bind it at port 12345 you could issue the following commands:
wget https://raw.github.com/globaleaks/GlobaLeaks/master/scripts/servicemode/create-gl-instance.sh
chmod +x create-gl-instance.sh
./create-gl-instance.sh -d leaks.example.org -p 12345
By issuing the previous commands a new instance is prepared in /var/leaks.example.org and can be started with:
/etc/init.d/tor restart
/var/leaks.example.org/restart-leaks.example.org.sh
The first of the above commands restarts Tor and create the Hidden Service for the new instance. To configure the new instance for the cenerated hidden service follow the second part of the guidelines "STEP 4 - Create Your Hidden Service" in Installation Guide