Server Side ScriptingΒΆ

Please look at the generic documentation on server side scripting.

You can place files in custom/caosdb-server/scripting. Typically, you will want to include a file custom/caosdb-server/scripting/home/.pycaosdb.ini with the following content.

url = https://localhost:10443
cacert = /opt/caosdb/cert/caosdb.cert.pem

Use the hostname in the URL for which the certificate is created and the correct port. If the certificate is signed by a CA you may leave cacert blank since the certificate can then be verified without the file.

Note that the script is executed inside Docker. Thus, the URL should be publicly valid (i.e. the external hostname and port) or valid inside the container (which is typically the one given above with localhost).