#!/bin/sh

cat <<BANNER
----------------------------------------------------------------------

Console Light for Angie has been installed.
To enable this functionality, add the following snippet to Angie
configuration:

    location /console/ {
        # define list of trusted hosts or networks
        # allow 127.0.0.1;
        # allow 192.168.0.0/16;
        # allow 10.0.0.0/8;
        deny all;

        auto_redirect on;

        alias /usr/share/angie-console-light/html/;
        index index.html;

        location /console/api/ {
            api /status/;
        }

        # uncomment below lines to enable writable API
        # location /console/api/config/ {
        #     api /config/;
        # }
    }

Don't forget to apply these changes as:

    $ sudo angie -t && sudo service angie reload

For further details please refer to the following page:
https://angie.software/en/console/

----------------------------------------------------------------------
BANNER

exit 0
