From 2084eebe93d21b827df699fd28052d3b20ee6921 Mon Sep 17 00:00:00 2001 From: "Niels G. W. Serup" Date: Sun, 23 Aug 2020 01:15:42 +0200 Subject: [PATCH] Simplify old-projects nginx config. --- old-projects/nginx/base.conf | 13 ------------- old-projects/nginx/site.conf | 19 ------------------- old-projects/old-projects.nginx.conf | 11 +++++++++++ 3 files changed, 11 insertions(+), 32 deletions(-) delete mode 100644 old-projects/nginx/base.conf delete mode 100644 old-projects/nginx/site.conf create mode 100644 old-projects/old-projects.nginx.conf diff --git a/old-projects/nginx/base.conf b/old-projects/nginx/base.conf deleted file mode 100644 index c856752..0000000 --- a/old-projects/nginx/base.conf +++ /dev/null @@ -1,13 +0,0 @@ -server_name old-projects.metanohi.name www.old-projects.metanohi.name projects.metanohi.name www.projects.metanohi.name; - -root /home/niels/prog/metanohi-misc-subsites/old-projects; -index index.html index.php; - -location ~ \.php$ { - include snippets/fastcgi-php.conf; - fastcgi_pass unix:/run/php/php7.0-fpm.sock; -} - -location / { - autoindex on; -} diff --git a/old-projects/nginx/site.conf b/old-projects/nginx/site.conf deleted file mode 100644 index 52a5cfd..0000000 --- a/old-projects/nginx/site.conf +++ /dev/null @@ -1,19 +0,0 @@ -server { - listen 80; - listen [::]:80; - - include /etc/nginx/snippets/letsencrypt.conf; - include /etc/nginx/basics/niels/old-projects.metanohi.name.conf; -} - -server { - listen 443 ssl http2; - listen [::]:443 ssl http2; - - ssl_certificate /etc/letsencrypt/live/old-projects.metanohi.name/fullchain.pem; - ssl_certificate_key /etc/letsencrypt/live/old-projects.metanohi.name/privkey.pem; - ssl_trusted_certificate /etc/letsencrypt/live/old-projects.metanohi.name/fullchain.pem; - - include /etc/nginx/snippets/ssl.conf; - include /etc/nginx/basics/niels/old-projects.metanohi.name.conf; -} diff --git a/old-projects/old-projects.nginx.conf b/old-projects/old-projects.nginx.conf new file mode 100644 index 0000000..4724214 --- /dev/null +++ b/old-projects/old-projects.nginx.conf @@ -0,0 +1,11 @@ +root /home/niels/www/metanohi-misc-subsites/old-projects; +index index.html index.php; + +location ~* \.php$ { + fastcgi_pass unix:/run/phpfpm/main.sock; + include /etc/nginx/fastcgi.conf; +} + +location / { + autoindex on; +}