Introduction
This article describe Proxy activation so SYSTRAN can pull TR from the Translation Resource Store. This works if Proxy allows tunneling connection.
Procedure
1) Update TRSL services with proxy:
Service file to update are:
/usr/lib/systemd/system/systran-trs-console.service
/usr/lib/systemd/system/systran-trs-poller.service
For each file add the following information in the [Service] section
Environment=HTTPS_PROXY=https://Proxy:Proxy_port
Config file should look like:
[Unit]
Description=Systran Translation Resource Store is node js server web
After=network.target
[Service]
Type=simple
User=systran
WorkingDirectory=/opt/systran/apps-node/translation-resource-store
ExecStart=/usr/bin/node trs-console.js
LimitNOFILE=16384
Environment=HTTPS_PROXY=https://proxy:8080
Restart=on-failure
RestartSec=1s
SyslogIdentifier=systran-trs-console
StandardOutput=journal
StandardError=journal
[Install]
WantedBy=multi-user.target
RequiredBy=systran-translation-resource-store.target
2) Restart TRS services
First relaod deamon files:
systemctl daemon-reload
Then restart services:
systemctl restart systran-trs-console
systemctl restart systran-trs-poller
3) Monitor log files
journalctl -f -u systran-trs\*