Skip to content
This repository has been archived by the owner on Mar 7, 2018. It is now read-only.

Latest commit

 

History

History
56 lines (42 loc) · 1.66 KB

configuration.md

File metadata and controls

56 lines (42 loc) · 1.66 KB

Configuration

After installation (dev or prod) you need to configure the application to works in its environement.

Register CERN OAuth

  1. Go https://sso-management.web.cern.ch/OAuth/RegisterOAuthClient.aspx
  2. client_id is whatever you want
  3. redirect_uri is like https://hostname:port/callback
  4. Generate and put the secret to your config.js
  5. submit request

Config file

cd /opt/InfoLoggerGui
cp config-default.js config.js
vim config.js
systemctl restart infologgergui
systemctl status infologgergui # check
# Done, go to the HTTPS link :)
Path Description
oAuth.secret password from your oauth registration
oAuth.id login from your oauth registration
oAuth.redirect_uri the URL of this application like https://hostname:port/callback
http.hostname should be the one from redirect_uri
infoLoggerServer.{host,port} empty if you don't want to use
mysql.{host,user,password} empty if you don't want to use

Other fields should be ok by default for your configuration at CERN.

If you change the public ports (8080 and 8443), you need change it on your firewall:

# add ports
firewall-cmd --zone=public --add-port=8443/tcp --add-port=8080/tcp --permanent

# list ports
firewall-cmd --list-all

# remove ports
firewall-cmd --zone=public --remove-port=8443/tcp --remove-port=8080/tcp --permanent

Certificates (dev only)

You need a certificate to access the app via HTTPS, this is mandatory. This is automatic when you install a package.

cd /opt/InfoLoggerGui
mkdir cert
openssl req -nodes -x509 -newkey rsa:4096 -keyout cert/key.pem -out cert/cert.pem -days 365 -subj "/C=CH/ST=Geneva/L=Meyrin/O=CERN"