Skip to content

Commit

Permalink
simplified config
Browse files Browse the repository at this point in the history
  • Loading branch information
celogeek committed Mar 17, 2019
1 parent 5787dda commit 485326b
Show file tree
Hide file tree
Showing 14 changed files with 26 additions and 89 deletions.
1 change: 0 additions & 1 deletion files/etc/nginx/conf.d/all.conf
Expand Up @@ -2,4 +2,3 @@ include conf.d/opti.conf;
include conf.d/ssl.conf;
include conf.d/gzip.conf;
include conf.d/realip.conf;
#include conf.d/geoip2.conf;
21 changes: 0 additions & 21 deletions files/etc/nginx/conf.d/default_site

This file was deleted.

28 changes: 0 additions & 28 deletions files/etc/nginx/conf.d/fastcgi_params

This file was deleted.

11 changes: 0 additions & 11 deletions files/etc/nginx/conf.d/geoip2.conf

This file was deleted.

2 changes: 0 additions & 2 deletions files/etc/nginx/conf.d/listen_both.conf

This file was deleted.

2 changes: 0 additions & 2 deletions files/etc/nginx/conf.d/listen_both_default.conf

This file was deleted.

2 changes: 1 addition & 1 deletion files/etc/nginx/conf.d/listen_http.conf
@@ -1,2 +1,2 @@
listen 80;
listen [::]:80;
listen [::]:80 ipv6only=on;
2 changes: 0 additions & 2 deletions files/etc/nginx/conf.d/listen_http_default.conf

This file was deleted.

2 changes: 1 addition & 1 deletion files/etc/nginx/conf.d/listen_https.conf
@@ -1,4 +1,4 @@
listen 443 ssl http2;
listen [::]:443 ssl http2;
listen [::]:443 ssl ipv6only=on http2;

add_header Strict-Transport-Security "max-age=63072000; includeSubdomains; ";
4 changes: 0 additions & 4 deletions files/etc/nginx/conf.d/listen_https_default.conf

This file was deleted.

9 changes: 0 additions & 9 deletions files/etc/nginx/conf.d/php.conf

This file was deleted.

6 changes: 0 additions & 6 deletions files/etc/nginx/conf.d/ssl_checker.conf

This file was deleted.

25 changes: 24 additions & 1 deletion files/etc/nginx/nginx.conf
Expand Up @@ -20,7 +20,30 @@ http {
access_log /var/log/nginx/access.log main;
error_log /var/log/nginx/error.log;

include conf.d/default_site;
server {
include conf.d/listen_http.conf
server_name _;

location ^~ /.well-known/acme-challenge/ {
root /var/www/;
allow all;
}

location / {
return 301 https://$host$request_uri;
}
}

server {
include conf.d/listen_https.conf
server_name _;

ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem;
ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key;

return 404;
}

include sites/*;
}

Expand Down
File renamed without changes.

0 comments on commit 485326b

Please sign in to comment.