UISP-Tools is an open-source node server that extend the functionality of UISP. This Node.js application runs in a seperate docker instance will interface to your instance of UISP using an Application Key using the UISP API's. CRM Read more. NMS Read more.
UISP-Tools is compatible with UCRM 2.10.0+
There are Now two install first is the easiest and will work with a Cloud Hosted and Self Hosted the Second Method only will Self Hosted but becasue it runs inside of UISP Docker Compse it will be able to access the UISP Postgres Directly
#Method One (Cloud Hosted and Self Hosted) Running as a seperate Docker Container on either sperate server or same server as UISP
- uisptools docker container is created and runs on a seperate ip or port and url as UISP
- uisptools docker container is configured to use the UISP API's via API Key to access the UISP data via built in UISP API functions
sudo usermod -a -G docker $USER
newgrp groupName
'''
### Step 3: Download the installUispToolsStandAlone.sh script from github
curl -H 'Cache-Control: no-cache, no-store' -sL https://raw.githubusercontent.com/Andrewiski/UISP-Tools/main/dockerCompose/installUispToolsStandAlone.sh -o installUispToolsStandAlone.sh
### Step 4: Run the installUispToolsStandAlone.sh script
./installUispToolsStandAlone.sh -alias uisptools -googleapikey "AIAASSSrB1Ek-000000-0000000" -installdir "/home/$USER/uisptools" -httpport 46080 -httpsport 46443 -nocreateuser
### Step 5: Edit the config.json file to add your UISP API Key and Set the UNMS and UCRM URLs
nano /home/$USER/uisptools/config/config.json
### Step 6: Open the UISP-Tools in your browser, login using your UISP NMS credentials, note that the single login will allow you to login using CRM but not give you access to the ADMIN tools.
http://:46080
## To Upgrade UISP-Tools run the installUispToolsStandAlone.sh script with the -upgrade flag
./installUispToolsStandAlone.sh -alias uisptools -googleapikey "AIAASSSrB1Ek-000000-0000000" -installdir "/home/$USER/uisptools" -httpport 46080 -httpsport 46443 -nocreateuser -upgrade
## Optional Install NGIX to handle SSL and Reverse Proxy
sudo apt-get install nginx sudo nano /etc/nginx/sites-available/uisptools
#Method Two (Self Hosted Only) Running Inside of UISP Docker Compose by Injecting the UISP Tools Docker Containers into the UISP Docker Compose
- uisptools docker services are added to the UISP docker-compose.yaml file that is created during the UISP install process located at /home/unms/app/docker-compose.yml
- next the /uisptools path is added to the unms-nginx conf.d so that it can accessed using the UNMS url /uisp
- plugins can be added by copying them to the config/plugin folder and adding them to the plugins section of config.json file
- all of the uisptools reside in a completly seperate paths as well as seperate containers so easy to remove and upgrade
# Create a password for the unms user
sudo passwd unms
#Login as unms as thats the user uisp runs under
#get the unms userid make sure it matches the user in the docker-compose.yml so the container runs as correct user
id -u
#Change the /home/unms/app folder where the docker-compose.yml file resides it too will have the user id set needs to be the same so updated if not 1001 from my example append file
cd ~/app
# create the uisptools folder using unms user so they have correct permissions
mkdir ~/data/uisptools
mkdir ~/data/uisptools/config
mkdir ~/data/uisptools/config/public
mkdir ~/data/uisptools/config/plugins
mkdir ~/data/uisptools/logs
mkdir ~/data/uisptools/mongodb
mkdir ~/data/uisptools/mongodb/data
mkdir ~/data/uisptools/mongodb/docker-entrypoint-initdb.d
mkdir ~/data/uisptools/nginx/
mkdir ~/data/uisptools/nginx/templates
#copy existing enginx templates to our override folder.
docker cp unms-nginx:/usr/local/openresty/nginx/templates/conf.d/ ~/data/uisptools/nginx/templates/
#copy the mongo db init scripts from github (note this are only ran once and only if there is an empty database I use Studio 3T as windows mongo Client see below)
wget https://raw.githubusercontent.com/Andrewiski/UISP-Tools/main/mongodb/docker-entrypoint-initdb.d/01_createDatabase.js -O ~/data/uisptools/mongodb/docker-entrypoint-initdb.d/01_createDatabase.js
wget https://raw.githubusercontent.com/Andrewiski/UISP-Tools/main/mongodb/docker-entrypoint-initdb.d/02_initWebServerPages.js -O ~/data/uisptools/mongodb/docker-entrypoint-initdb.d/02_initWebServerPages.js
#Stop the uisp docker containers
docker-compose down
# append the contents of https://github.com/Andrewiski/UISP-Tools/blob/main/dockerCompose/uisp/docker-compose-append.yml to the end of /home/unms/app/docker-compose.yml
nano docker-compose.yml
#Note that by changing the version of of uisptools in the docker-compose.yml will allow it to be upgraded with a "docker-compose down" followed by a "docker-compose up -d"
#restart uisp including the uisptools services
#because unms_nginx stores its template in the image a down and up will revert the template back to the docker image
#to prevent this we copy the templates to a local folder make the changes and map them by adding a volume to the uisp_nginx service in docker-compose.yml
- /home/unms/data/uisptools/nginx/templates/conf.d:/usr/local/openresty/nginx/templates/conf.d
nano ~/data/uisptools/nginx/templates/conf.d/unms-https+wss.conf.template
nano ~/data/uisptools/nginx/templates/conf.d/unms+ucrm-https.conf.template
nano ~/data/uisptools/nginx/templates/conf.d/unms+ucrm-https+wss.conf.template
# Append the following to the templates so uisptools is accessable on the /uisptools/ path
location /uisptools/ {
allow all;
proxy_pass http://uisptools:49080;
}
docker-compose up -d
Should be ablle to get the default website to open by visiting https://uispserver/uisptools
I use the free Windows app Studio 3T and connect to the mongo instance using ssh and then authentication using the uisptools and password set in docker-compose.yaml. Note that username password combo if changed needs to be updated in the /home/unms/uisptools/config/config.json as well in the mongodb url
- Installing uisptools can allow any NMS superadmin to make any nms api call exposed this includes Posts and Deletes via urls using the generic passthrough this can be disabled with a config option. The user does need to using the uisptools login and have an active short lived access token
- Any plugin can be copied and extended by coping to the config/plugins folder, config/plugins is served before /plugins this way any and all plugins can be extended
- This application are under GNU General Public License v3.0 enabling anyone to contribute any upgrades or create whole new ones
- Propose any Pull Request in this repository.
- See the documentation below.
The software is provided "as is", without any warranty of any kind. Please read LICENSE for further details