Figured out the solution. Apologies for delayed post.
In the config file service_config.txt, enter key, values like below:
var1=value1
var2=value2
In the service unit file's service section,
[Service]
EnvironmentFile=<Absolute_path>/service_config.txt
From here on, the keys are visible using ${var1} ${var2}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…