From bb7f5912af28f6fdb66bfc0f31aeb49d2c935319 Mon Sep 17 00:00:00 2001 From: Matthew Date: Tue, 10 Dec 2024 19:24:35 -0500 Subject: [PATCH] fusion installation --- .../Server Blocks/pbx.libraryofcode.org.conf | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Nginx/Server Blocks/pbx.libraryofcode.org.conf diff --git a/Nginx/Server Blocks/pbx.libraryofcode.org.conf b/Nginx/Server Blocks/pbx.libraryofcode.org.conf new file mode 100644 index 0000000..07c0fbc --- /dev/null +++ b/Nginx/Server Blocks/pbx.libraryofcode.org.conf @@ -0,0 +1,25 @@ +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + server_name pbx.libraryofcode.org; + + ssl_certificate /etc/nginx/ssl/org.chain.crt; + ssl_certificate_key /etc/nginx/ssl/org.key.pem; + + client_max_body_size 230M; + client_body_timeout 1h; + + root /opt/fusionpbx; + index index.php; + + location / { + try_files $uri $uri/ /index.php?$query_string; + } + + location ~ \.php$ { + include snippets/fastcgi-php.conf; + fastcgi_pass unix:/var/run/php/php7.4-fpm.sock; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + include fastcgi_params; + } +}