Artica Wiki

Changing REST-API parameters from the command line

how someone can tweak REST-API parameters straight from the command line.

Return back to REST API main section

How someone can tweak REST-API parameters straight from the command line.

Change the listen interface to loopback (lo)

artica-phpfpm-service -set-memory-socks ActiveDirectoryRestInterface -value lo

Change the listen port to 9503

artica-phpfpm-service -set-memory-socks ActiveDirectoryRestPort -value 9503

Turn off/on the SSL 

artica-phpfpm-service -set-memory-socks ActiveDirectoryRestSSL -value 0

artica-phpfpm-service -set-memory-socks ActiveDirectoryRestSSL -value 1

Certificate is hardcoded using these paths

Certificate: "/etc/cherrypy/certificates/ad-rest/certificate.pem"
Private key: "/etc/cherrypy/certificates/ad-rest/private_key.key"

Restart the service to take effects

/etc/init.d/artica-ad-rest restart