Files
Wordpress-Ansible/snake/nginx.conf
2025-12-08 09:45:23 +01:00

31 lines
601 B
Nginx Configuration File

worker_processes 1;
events { worker_connections 1024; }
http {
include mime.types;
default_type application/octet-stream;
# Snake game server
server {
listen 80;
server_name _;
location / {
root /usr/share/nginx/html;
index index.html;
}
}
# Metrics for Prometheus
server {
listen 81;
server_name _;
location /nginx_status {
stub_status;
allow 0.0.0.0/0; # adjust for security; or restrict to your Prometheus server
deny all;
}
}
}