Skip to main content

Server configuration: Linux

In this step you will deploy the commandline configuration

Make the following substitutions

  • i: $DOCUMENT
  • title: $TITLE
  • r: $CPR
  • testmode: 0

The connection string should look something like

java -cp .:/mnt/sda/deploy/doc2mail/* dk.doc2mail.client.FileUploaderClient --address "https://privat.doc2mail.dk/delivery/FileUploader.asmx" --certificate "/mnt/sda/certs/doc2mail.pke" -i "$DOCUMENT" --title "$TITLE" -d ebokskmdprint -u "domainX\userY" -t "tempus serva" --ss "Oplysningsskema" --testmode 0 -r $CPR --rt CPR

Create execution script

cd /mnt/sda/deploy/doc2mail
sudo nano send.sh

Paste the execution script (above)

DOCUMENT=$1
CPR=$2
TITLE="$3 $4 $5 $6 $7"
java -cp .:/mnt/sda/deploy/doc2mail/* dk.doc2mail.client.FileUploaderClient --address "https://privat.doc2mail.dk/delivery/FileUploader.asmx" --certificate "/mnt/sda/certs/doc2mail.pke" -i "$DOCUMENT" --title "$TITLE" -d ebokskmdprint -u "domainX\userY" -t "tempus serva" --ss "Oplysningsskema" --testmode 0 -r $CPR --rt CPR

The set up permissions for the script

sudo chmod 777 send.sh

Copy the value to the server configuration parameter

  1. Modules > Static content > Add
  2. Set title = eboksIntegrationTemplate
/mnt/sda/deploy/doc2mail/send.sh @@DOCUMENT@@ @@CPR@@ @@TITLE@@

Set doc2mail as ebox provider

  1. Edit the setting eboksProvider (url: ServerSettingSingle.do?PolicyName=eboksProvider&DataType=3)
  2. Set the value to: doc2mail

Activate token rewrites

  1. Edit the setting interfaceTokenRewrite (url: ServerSettingSingle.do?PolicyName=interfaceTokenRewrite&DataType=1)
  2. Set the value to true
  3. Edit the setting interfaceTokenRewriteUrl (url: ServerSettingSingle.do?PolicyName=interfaceTokenRewriteUrl&DataType=3)
  4. Set the value to https://svar.link/FOOBAR/
    • FOOBAR is the name of your application as registered in svar.link

Reboot the server