First commit
This commit is contained in:
commit
fdaacfc5a6
19 changed files with 919 additions and 0 deletions
27
nginx/includes/default.conf
Normal file
27
nginx/includes/default.conf
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
root /home/web/$server_name;
|
||||
|
||||
listen 80;
|
||||
|
||||
index index.html;
|
||||
access_log /var/log/nginx/$server_name-access.log;
|
||||
|
||||
server_tokens off;
|
||||
|
||||
location = /favicon.ico {
|
||||
log_not_found off;
|
||||
access_log off;
|
||||
}
|
||||
|
||||
location = /robots.txt {
|
||||
allow all;
|
||||
log_not_found off;
|
||||
access_log off;
|
||||
}
|
||||
|
||||
# Allow access to the ACME Challenge for Let's Encrypt stateless
|
||||
location ~ ^/\.well-known/acme-challenge/([-_a-zA-Z0-9]+)$ {
|
||||
auth_basic off;
|
||||
allow all;
|
||||
default_type text/plain;
|
||||
return 200 "$1.1tLqJzpkjGuP-mOBeLJWDHh_obRyJ7JtHKbUZSuv3SU";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue