initial commit - skeleton setup

This commit is contained in:
Asif Bacchus
2019-10-16 23:44:47 -06:00
parent 3536434902
commit 141b932a1c
17 changed files with 268 additions and 0 deletions
@@ -0,0 +1,22 @@
### redirect to secure site
server {
listen 80;
server_name default_server;
# redirect to properly formed HTTPS location
location / {
return 301 https://$host$request_uri;
}
# process Let's Encrypt challenges
location ^~ /.well-known/acme-challenge {
# log requests for security reasons
access_log /var/log/nginx/LetsEncrypt_access.log main;
error_log /var/log/nginx/LetsEncrypt_error.log warn;
default_type text/plain;
root /usr/share/nginx/html/letsencrypt;
autoindex on;
}
}
+10
View File
@@ -0,0 +1,10 @@
### UNsecured test page
server {
listen 80;
server_name default_server;
location / {
try_files $uri $uri/ =404;
}
}
+10
View File
@@ -0,0 +1,10 @@
### UNsecured test page
server {
listen 443;
include /etc/nginx/server_names.conf;
location / {
try_files $uri $uri/ =404;
}
}