From d84a8d50fff0a63e9047e5752491520f9736ee57 Mon Sep 17 00:00:00 2001 From: Matthew Date: Mon, 7 Oct 2024 20:26:55 -0400 Subject: [PATCH] configure cal proxying --- Nginx/Server Blocks/book.libraryofcode.org.conf | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/Nginx/Server Blocks/book.libraryofcode.org.conf b/Nginx/Server Blocks/book.libraryofcode.org.conf index d177211..d3caf16 100644 --- a/Nginx/Server Blocks/book.libraryofcode.org.conf +++ b/Nginx/Server Blocks/book.libraryofcode.org.conf @@ -6,19 +6,7 @@ server { ssl_certificate /etc/nginx/ssl/org.chain.crt; ssl_certificate_key /etc/nginx/ssl/org.key.pem; - root /opt/book; - - index index.html index.htm index.php; - - - location ~ \.php$ { - include snippets/fastcgi-php.conf; - fastcgi_pass unix:/run/php/php7.3-fpm.sock; - fastcgi_param HTACCESS on; - proxy_read_timeout 800; - } - - if (!-e $request_filename){ - rewrite ^(.*)$ /index.php?/$1 last; + location / { + proxy_pass http://localhost:3000; } }