This article describes the methodology in order to define a password to REDIS.
By default, there is no password defined.
Following components may connect to Redis:
- ses-console (for session cache)
- ses-gateway (for api session cache)
- PTE (for translation cache). Redis parameters are retrieved from TRM configuration.
The order of the password reconfiguration is as follows :
Through WebUI, go to Administration / Settings. Then edit the Redis settings section by setting the Redis authentication password parameter with the requested Redis password.
Then restart the systran-ses-console service.
# systemctl restart systran-ses-console.service
Edit the .yml config file within /opt/systran/apps-node/translation-gateway/config.
And set the Redis password in front of pass directive.
ApiKeys: Cache: host: localhost port: 6379 pass: prefix: keyserv validity: 600 #in seconds, 0 for infinite
Then restart the systran-ses-gateway service.
# systemctl restart systran-ses-gateway.service
The change must be performed on each TRM node. Edit the /opt/systran/translation-resource-monitor/etc/trm.cfg file.
Uncomment only the redis-password directive and set it the requested Redis password.
#redis config #with-redis-cache = true #redis-host = localhost #redis-port = 6379 #redis-key-prefix = PTE_ #redis-password = SESpassword
Then restart the systran-translation-resource-monitor service.
# systemctl restart systran-translation-resource-monitor.service
Edit file /etc/redis.conf, uncomment line starting with "requirepass" and update with password (password "systran" for used below for REDIS :
Relaunch REDIS :
# systemctl restart redis
Test the translation.
If there are issues, restart all of the SPNS9 services and retest.