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;
}
}
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
Asked: 2023-07-15 14:14:09 +0000
Seen: 7 times
Last updated: Jul 21
When deploying a Nextjs App using AWS Amplify, how do I resolve a 404 error?
How can I divide my schema.graphql into several files within Amplify?
How can I insert a Cookie in the Nginx Configuration File?
How can I add the Google ads.txt directly in the Nginx config File?
I am serving a site via a Nginx Proxy. How can I enable Text Compression?
What is the procedure for redirecting HTTPS requests from port 443 to a different port using Nginx?
How can I install Maxdata Geo IP light on my Ubuntu Server?
How can I install Beegfs on Ubuntu 22.04?
How can I migrate all UFW Firewall Rules from one Ubuntu Server to another one?