From 82da2be1be6d3ac19392307a3c1f02eb094287fb Mon Sep 17 00:00:00 2001 From: Matthew R Date: Sat, 1 May 2021 16:25:44 -0400 Subject: [PATCH] fixes --- .../Server Blocks/ats.libraryofcode.org.conf | 2 +- .../forms.libraryofcode.org.conf | 2 +- .../inbox.libraryofcode.org.conf | 31 +++++++++++++++++++ .../Server Blocks/keys.libraryofcode.org.conf | 2 +- Nginx/Server Blocks/libraryofcode.org.conf | 4 +-- 5 files changed, 36 insertions(+), 5 deletions(-) create mode 100644 Nginx/Server Blocks/inbox.libraryofcode.org.conf diff --git a/Nginx/Server Blocks/ats.libraryofcode.org.conf b/Nginx/Server Blocks/ats.libraryofcode.org.conf index 448ad73..438ef82 100644 --- a/Nginx/Server Blocks/ats.libraryofcode.org.conf +++ b/Nginx/Server Blocks/ats.libraryofcode.org.conf @@ -17,7 +17,7 @@ server { location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/run/php/php7.0-fpm.sock; - fastcgi_param HTACCESS on; + fastcgi_param HTACCESS on; proxy_read_timeout 800; } } diff --git a/Nginx/Server Blocks/forms.libraryofcode.org.conf b/Nginx/Server Blocks/forms.libraryofcode.org.conf index b063408..c716596 100644 --- a/Nginx/Server Blocks/forms.libraryofcode.org.conf +++ b/Nginx/Server Blocks/forms.libraryofcode.org.conf @@ -2,7 +2,7 @@ server { listen 443 ssl http2; listen [::]:443 ssl http2; server_name forms.libraryofcode.org; - + ssl_certificate /etc/nginx/ssl/org.chain.crt; ssl_certificate_key /etc/nginx/ssl/org.key.pem; diff --git a/Nginx/Server Blocks/inbox.libraryofcode.org.conf b/Nginx/Server Blocks/inbox.libraryofcode.org.conf new file mode 100644 index 0000000..f2d00ea --- /dev/null +++ b/Nginx/Server Blocks/inbox.libraryofcode.org.conf @@ -0,0 +1,31 @@ +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + server_name inbox.libraryofcode.org; + + ssl_certificate /etc/nginx/ssl/org.chain.crt; + ssl_certificate_key /etc/nginx/ssl/org.key.pem; + + root /var/www/rainloop; + index index.php index.html; + + access_log /var/log/nginx/rainloop_access.log; + error_log /var/log/nginx/rainloop_error.log; + + location / { + try_files $uri $uri/ /index.php?$query_string; + } + + location ~ ^/(.+\.php)$ { + try_files $uri =404; + fastcgi_pass unix:/run/php/php7.0-fpm.sock; + fastcgi_index index.php; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + include /etc/nginx/fastcgi_params; + } + + location ^~ /data { + deny all; + } + +} diff --git a/Nginx/Server Blocks/keys.libraryofcode.org.conf b/Nginx/Server Blocks/keys.libraryofcode.org.conf index 814fda9..55368c2 100644 --- a/Nginx/Server Blocks/keys.libraryofcode.org.conf +++ b/Nginx/Server Blocks/keys.libraryofcode.org.conf @@ -5,7 +5,7 @@ server { server_name keys.libraryofcode.org; ssl_certificate /etc/nginx/ssl/org.chain.crt; ssl_certificate_key /etc/nginx/ssl/org.key.pem; - + root /var/www/html/sks; error_page 404 /404.html; diff --git a/Nginx/Server Blocks/libraryofcode.org.conf b/Nginx/Server Blocks/libraryofcode.org.conf index b1b4256..40bf65d 100644 --- a/Nginx/Server Blocks/libraryofcode.org.conf +++ b/Nginx/Server Blocks/libraryofcode.org.conf @@ -2,10 +2,10 @@ server { listen 443 ssl http2 default_server; listen [::]:443 ssl http2 default_server; server_name www.libraryofcode.org; - + ssl_certificate /etc/nginx/ssl/org.chain.crt; ssl_certificate_key /etc/nginx/ssl/org.key.pem; - + root /var/www/wordpress; index index.php;