Central/Enketo integration with self-signed cert

Hi,

Simply add
ENV NODE_TLS_REJECT_UNAUTHORIZED='0'
in enkoto.dockerfile after the line 1 (i.e. AFTER FROM enketo/enketo-express: ... )
the rebuilt enketo image and it works (this is related to node and not to enkoto)
A good way will be to manage that on the enkelo level incase the domain is local / localhost or host.docker.internal (i.e. export ENV NODE_TLS_REJECT_UNAUTHORIZED='0' as environement variable )
--> THIS SHOULD NEVER BE USED IN PRODUCTION

Also enketo gave me an error when I used local as domain so use the doker workarround
DOMAIN=host.docker.internal

I hope it helps

br

3 Likes