Was this page helpful?

Hiding the API key from "ps"

    Table of contents
    No headers

    By default, the Dream apikey is specified on the command line when starting mindtouch.host.exe.  This allows the apikey to be displayed in the output of the `ps` command.  An alternative is to specify the apikey (or any other dream runtime setting) using a host config file.

    Create the following file:  /var/www/dekiwiki/bin/host-config.xml

    <config>
        <apikey>my_super_secret_key</apikey> 
    </config>
    

    Then edit your /etc/init.d/dekiwiki script and change the value of $MONO_ARGS to this:

    MONO_ARGS="$HOST_EXE config $BIN_DIR/host-config.xml script $SCRIPT path-prefix $PATH_PREFIX http-port $HTTP_PORT ip $IP connect-limit $CONNECT_LIMIT $NOTTY $GUID $STORAGEDIR
    

    After restarting, you will no longer see the apikey parameter in the `ps` output.

    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by