Add nginx role and playbook for App1 deployment
- Complete nginx role with official repository setup - Configuration placed in conf.d/ for proper inclusion - Working stub_status endpoints (/status, /nginx_status) - Custom HTML template with monitoring information - Cleanup of default Nginx configurations - Ready for deployment on App1 (192.168.0.110)
This commit is contained in:
28
roles/nginx/templates/app1.conf.j2
Normal file
28
roles/nginx/templates/app1.conf.j2
Normal file
@ -0,0 +1,28 @@
|
||||
# App1 Nginx configuration
|
||||
server {
|
||||
listen 80;
|
||||
server_name _;
|
||||
|
||||
root /var/www/app1;
|
||||
index index.html;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
|
||||
location /status {
|
||||
stub_status on;
|
||||
access_log off;
|
||||
allow 127.0.0.1;
|
||||
allow 192.168.0.0/24;
|
||||
deny all;
|
||||
}
|
||||
|
||||
location /nginx_status {
|
||||
stub_status on;
|
||||
access_log off;
|
||||
allow 127.0.0.1;
|
||||
allow 192.168.0.0/24;
|
||||
deny all;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user