Installation

Initial Ticketserver Installation

Installation of the Ticketserver with apt

  • Add ecm4u public key. Exit operation afterwards (e.g. with ctrl+d)
    apt-key add -
    
    -----BEGIN PGP PUBLIC KEY BLOCK-----
    Version: GnuPG v1

mQENBFoecjsBCAC8wyryxM0pJiNhAORT+hT02WPFJrV7SVfjhxG2TmkQMIHtffTj nuHAGmrg/1uu1PMGqiws8MTpdc50Hw/Ur6YeSd6af83Jrcz3M1Zz0/wVrUb1FwTl JFSa4JdMrURn9maUbtKeAAsfpf3SyyFrK2r0jHAL/htr1IUzbDLvBnU8oVJDZjdX c4sszPAFHeUiFkzPQnCW3Gx1/OVqTsYoc5cLvXpzxL5alCSSG1OcFacg/2amZY1r PAHO+2Q6k/KbGB2nzx8CZAFkRQQVxPB7PpK9Osmmyn97RYfL+ID2tkIaMNz664Cl KXq7Z5m+q9w6Iu4iT9ishDoBpcKK5/hNri+FABEBAAG0BWRwa2cxiQE4BBMBAgAi BQJaHnI7AhsDBgsJCAcDAgYVCAIJCgsEFgIDAQIeAQIXgAAKCRD/wmua3gEuJuSv B/46BY+b9jn80bmqkDBkX+CXyEFcSNX98ckD8iMydZ7ctfxsh4K/WyIwr/RXQ+xI +URX6vTE8SDMyy5LwoAMY5sjzp1JCGUFgUHw76TvLWrYhX1d1bDJnha39y3y71s/ 8Iytb+ozTVnphHDED1o7IzxLn97KwxkWrHusJFeaIbzn5KXxeNDEaH/2BiNX+Kuq fh2d6tK7WlXgqXnjRm+qiv+LGYLZAS2RMqRJlHoTO7l6H58Ol0v1N0pMXiqpJOgS ziuKNQme9cP7Dg+Qt1HisA6DYwKdpAEKBlZ32NhGRAcomPiFKnC0HNeGWELtbjnT HUQhx0XQDoyMlmdNpxdEO8/2 =dGPt -----END PGP PUBLIC KEY BLOCK-----

* Add repository to sources. Exit operation afterwards (e.g. with `ctrl+d`)

cat > /etc/apt/sources.list.d/ecm4u-sbcs.list deb http://nas2.ecm4u.intra/apt ./

* Update package list.

apt update

* Install static assets. These contain jquery and bootstrap resources required for the tickerservers Web-Interface.

apt install sbcs-static-assets

* Install the Ticketserver.

apt install sbcs-ticketserver


### Configuration of the Ticketserver

#### Database

* Connect to your database and create the ticketserver schema. Exit operation afterwards (e.g. with `ctrl+d`)

psql --host=localhost --user=sbcs --db=sbcs

CREATE SCHEMA ticketserver;


#### Smart-BCS

* Edit the ticketserver configuration at `/etc/ecm4u/sbcs-ticketserver/config`. You should adjust all LDAP properties to fit your invornment. DB Properties only need to be changed if you chose other values than in the Database-Installation guide.
* Install nginx

apt install nginx-core

* Disable ipv6 by commenting out the following line in `/etc/nginx/sites-enabled/default`

listen [::]:80 default_server;

* Reload nginx

systemctl reload nginx

* Create a new Smart Business Context Service configuration file. Exit operation afterwards (e.g. with `ctrl+d`)

cat > /etc/nginx/sites-available/smart-bcs.conf

server { listen 80;

server_name smart-bcs;
access_log  /var/log/nginx/smart-bcs.access.log;

client_max_body_size 20M;

root /var/www/nginx/sbcs;
index index.html index.htm;
try_files $uri $uri/ /index.html;

location /ticketserver/ {
    proxy_pass http://127.0.0.1:8062/;
}

}

* Create a symbolic link of the file to sites-available in sites-enabled

cd /etc/nginx/sites-enabled/ ln -s ../sites-available/smart-bcs.conf

* Start the ticketserver

systemctl start sbcs-ticketserver



## Upgrading

TODO