Ask Your Question
0

How to install Amplify under Ubuntu

asked 2023-07-15 14:14:09 +0000

wagner gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-07-15 14:14:23 +0000

wagner gravatar image

updated 2023-07-21 13:45:07 +0000

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;
        }
}
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

1 follower

Stats

Asked: 2023-07-15 14:14:09 +0000

Seen: 22 times

Last updated: Jul 21 '23