From 9195b30bd5c6f14ba9b95a3f5aa6b109c35bb1ac Mon Sep 17 00:00:00 2001 From: MoonTestUse1 Date: Wed, 25 Dec 2024 05:03:34 +0600 Subject: [PATCH] =?UTF-8?q?=D0=A2=D0=B5=D1=81=D1=82=D0=B8=D1=80=D0=BE?= =?UTF-8?q?=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20=D0=BF=D1=80=D0=BE=D1=88=D0=BB?= =?UTF-8?q?=D0=BE=D0=B3=D0=BE=20=D0=BA=D0=BE=D0=BC=D0=BC=D0=B8=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/nginx/conf.d/default.conf | 5 +++-- docker/nginx/nginx.conf | 28 ++++++++++++++-------------- 2 files changed, 17 insertions(+), 16 deletions(-) diff --git a/docker/nginx/conf.d/default.conf b/docker/nginx/conf.d/default.conf index bbcec6e..4dc524f 100644 --- a/docker/nginx/conf.d/default.conf +++ b/docker/nginx/conf.d/default.conf @@ -1,6 +1,7 @@ server { - listen 80; - server_name localhost; + listen 80; + listen [::]:80; + server_name itformhelp.ru www.itformhelp.ru; root /usr/share/nginx/html; index index.html; diff --git a/docker/nginx/nginx.conf b/docker/nginx/nginx.conf index f7c3d99..2dc3089 100644 --- a/docker/nginx/nginx.conf +++ b/docker/nginx/nginx.conf @@ -1,25 +1,25 @@ -user nginx; -worker_processes auto; +user nginx; +worker_processes auto; -error_log /var/log/nginx/error.log notice; -pid /var/run/nginx.pid; +error_log /var/log/nginx/error.log notice; +pid /var/run/nginx.pid; events { - worker_connections 1024; + worker_connections 1024; } http { - include /etc/nginx/mime.types; - default_type application/octet-stream; + include /etc/nginx/mime.types; + default_type application/octet-stream; - log_format main '$remote_addr - $remote_user [$time_local] "$request" ' - '$status $body_bytes_sent "$http_referer" ' - '"$http_user_agent" "$http_x_forwarded_for"'; + log_format main '$remote_addr - $remote_user [$time_local] "$request" ' + '$status $body_bytes_sent "$http_referer" ' + '"$http_user_agent" "$http_x_forwarded_for"'; - access_log /var/log/nginx/access.log main; + access_log /var/log/nginx/access.log main; - sendfile on; - keepalive_timeout 65; + sendfile on; + keepalive_timeout 65; include /etc/nginx/conf.d/*.conf; -} \ No newline at end of file +}