Browse Source

Исправлены конфиги

Denis V. Dedkov 1 year ago
parent
commit
4a3db8cf31
3 changed files with 4 additions and 48 deletions
  1. 0 47
      acme.conf
  2. 3 0
      dended.ru.conf
  3. 1 1
      noolite.dended.ru.conf

+ 0 - 47
acme.conf

@@ -1,47 +0,0 @@
-user  angie;
-worker_processes  auto;
-worker_rlimit_nofile 65536;
-
-error_log  /var/log/angie/error.log notice;
-pid        /run/angie/angie.pid;
-
-events {
-    worker_connections  65536;
-}
-
-
-http {
-    include       /etc/angie/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 extended '$remote_addr - $remote_user [$time_local] "$request" '
-                        '$status $body_bytes_sent "$http_referer" rt="$request_time" '
-                        '"$http_user_agent" "$http_x_forwarded_for" '
-                        'h="$host" sn="$server_name" ru="$request_uri" u="$uri" '
-                        'ucs="$upstream_cache_status" ua="$upstream_addr" us="$upstream_status" '
-                        'uct="$upstream_connect_time" urt="$upstream_response_time"';
-
-    access_log  /var/log/angie/access.log  main;
-
-    sendfile        on;
-    #tcp_nopush     on;
-
-    keepalive_timeout  65;
-
-    gzip  on;
-
-    resolver 8.8.8.8 ipv6=off; # требуется для директивы 'acme_client'
-
-    acme_client dended https://acme-v02.api.letsencrypt.org/directory;
-
-    include /etc/angie/http.d/*.conf;
-}
-
-#stream {
-#    include /etc/angie/stream.d/*.conf;
-#}
-

+ 3 - 0
dended.ru.conf

@@ -1,3 +1,6 @@
+resolver 8.8.8.8 ipv6=off; # требуется для директивы 'acme_client'
+acme_client dended https://acme-v02.api.letsencrypt.org/directory;
+
 server {
 	root /var/www/html;
 

+ 1 - 1
noolite.dended.ru.conf

@@ -8,7 +8,7 @@ server {
 
        location ~ /(noolite|static/channels.js) {
                 auth_basic "Restricted Area";
-                auth_basic_user_file /etc/nginx/auth.basic;
+                auth_basic_user_file /etc/angie/auth.basic;
                 proxy_pass http://192.168.1.77:8080;
       }