annotate nginx.conf @ 0:dfc36e7ed22c

init
author Vadim Filimonov <fffilimonov@yandex.ru>
date Thu, 12 May 2022 13:51:59 +0400
parents
children bbafc54bbd26
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
1 worker_processes 4;
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
2
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
3 events {
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
4 worker_connections 4096;
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
5 }
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
6
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
7 http {
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
8 include mime.types;
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
9 default_type application/octet-stream;
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
10 sendfile on;
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
11 keepalive_timeout 65;
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
12 resolver 8.8.8.8 1.1.1.1 valid=600s;
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
13 resolver_timeout 10s;
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
14
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
15 access_log off;
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
16 error_log off;
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
17
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
18 server {
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
19 listen 80;
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
20 location ~ "^/\.well-known/acme-challenge/([-_a-zA-Z0-9]+)$" {
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
21 default_type text/plain;
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
22 return 200 "$1.ZVfdXrOoSbmeTJ4l7OuY0SI388jxO8JHcxGPdqM1Jgk";
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
23 }
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
24
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
25 include nginx.default.conf;
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
26 include config/nginx.custom.*.conf;
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
27 include config/nginx.conf;
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
28 }
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
29 include config/nginx.ssl.*.conf;
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
30 }