upload example/ dir
This commit is contained in:
parent
8d1027d23f
commit
214ddf4785
3 changed files with 37 additions and 0 deletions
20
example/http.d/test1.conf
Normal file
20
example/http.d/test1.conf
Normal file
|
@ -0,0 +1,20 @@
|
|||
server {
|
||||
server_name test1.dc09.ru;
|
||||
return 200 "Hello world";
|
||||
|
||||
listen 443 ssl; # managed by Certbot
|
||||
ssl_certificate /etc/letsencrypt/live/test1.dc09.ru/fullchain.pem; # managed by Certbot
|
||||
ssl_certificate_key /etc/letsencrypt/live/test1.dc09.ru/privkey.pem; # managed by Certbot
|
||||
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
|
||||
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
|
||||
}
|
||||
|
||||
server {
|
||||
if ($host = test1.dc09.ru) {
|
||||
return 301 https://$host$request_uri;
|
||||
} # managed by Certbot
|
||||
|
||||
listen 80;
|
||||
server_name test1.dc09.ru;
|
||||
return 404; # managed by Certbot
|
||||
}
|
2
example/letsencrypt/.gitignore
vendored
Normal file
2
example/letsencrypt/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
*
|
||||
!.gitignore
|
15
example/nginx.conf
Normal file
15
example/nginx.conf
Normal file
|
@ -0,0 +1,15 @@
|
|||
worker_processes 4;
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
http {
|
||||
access_log off;
|
||||
error_log off;
|
||||
|
||||
include mime.types;
|
||||
default_type application/octet-stream;
|
||||
|
||||
include /etc/nginx/http.d/*;
|
||||
}
|
Loading…
Add table
Reference in a new issue