Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Here are the steps:

curl -L -O https://github.com/nginxinc/nginx-amplify-agent/raw/master/packages/install.sh

API_KEY='YOURAPIKEY' sh ./install.sh


mkdir /var/log/amplify-agent/
touch /var/log/amplify-agent/agent.log
chmod www-data /var/log/amplify-agent/agent.log

Here are the steps:

curl -L -O https://github.com/nginxinc/nginx-amplify-agent/raw/master/packages/install.sh

API_KEY='YOURAPIKEY' sh ./install.sh


mkdir /var/log/amplify-agent/
touch /var/log/amplify-agent/agent.log
chmod www-data /var/log/amplify-agent/agent.log

You also need to add this line:

[nginx]
stub_status = http://127.0.0.1:81/nginx_status

to

> /etc/amplify-agent/agent.conf

and create the file:

/etc/nginx/config.d/stub_status.conf

with the content:

server {
        listen 127.0.0.1:81;
        server_name 127.0.0.1;
        location /nginx_status {
                stub_status on;
                allow 127.0.0.1;
                deny all;
        }
}