From a05eb481434d6f9a33a2727c5de706720e972a34 Mon Sep 17 00:00:00 2001 From: Arif Hasanic Date: Fri, 29 Aug 2025 14:32:02 +0200 Subject: [PATCH] ci test --- nginx.conf | 38 ++++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/nginx.conf b/nginx.conf index 73f4e09..11a54dc 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,27 +1,29 @@ -worker_processes 1; - -events { worker_connections 1024; } - http { - include mime.types; - default_type application/octet-stream; - sendfile on; - keepalive_timeout 65; - server { - listen 80; - server_name localhost; + include mime.types; - root /usr/share/nginx/html; - index index.html; + set_real_ip_from 0.0.0.0/0; + real_ip_recursive on; + real_ip_header X-Forward-For; + limit_req_zone $binary_remote_addr zone=mylimit:10m rate=10r/s; - location / { - try_files $uri $uri/ /index.html; - } + server { + listen 80; + server_name localhost; + root /proxy; + limit_req zone=mylimit burst=70 nodelay; - error_page 500 502 503 504 /50x.html; - location = /50x.html { + location / { root /usr/share/nginx/html; + index index.html index.htm; + try_files $uri /index.html; } + + error_page 500 502 503 504 /50x.html; + location = /50x.html { + root /usr/share/nginx/html; } + } } + +events {} \ No newline at end of file