From e2d193f1e1b52b870584d86c902387f369f57716 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Thu, 1 Sep 2022 14:07:12 -0400 Subject: [PATCH] nginx conf changes --- Nginx/Old/hrm.libraryofcode.org.conf | 30 +++++++++++++++++++++++++++- Nginx/nginx.conf | 4 ++-- 2 files changed, 31 insertions(+), 3 deletions(-) diff --git a/Nginx/Old/hrm.libraryofcode.org.conf b/Nginx/Old/hrm.libraryofcode.org.conf index 0cb3788..b62e2aa 100644 --- a/Nginx/Old/hrm.libraryofcode.org.conf +++ b/Nginx/Old/hrm.libraryofcode.org.conf @@ -41,4 +41,32 @@ proxy_redirect http://localhost:6969 https://hrm.libraryofcode.org; # fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; # include fastcgi_params; #} -} \ No newline at end of file +} + + +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + server_name hr.libraryofcode.org; + + ssl_certificate /etc/nginx/ssl/org.chain.crt; + ssl_certificate_key /etc/nginx/ssl/org.key.pem; + + root /var/www/orangehrm/symfony/web; + index index.php index.html index.htm; + client_max_body_size 100M; + + access_log /var/log/nginx/hr_access.log; + error_log /var/log/nginx/hr_error.log; + + location / { + try_files $uri $uri/ /index.php?$uri&$args; + } + + location ~ \.php$ { + include snippets/fastcgi-php.conf; + fastcgi_pass unix:/var/run/php/php7.1-fpm.sock; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + include fastcgi_params; + } +} diff --git a/Nginx/nginx.conf b/Nginx/nginx.conf index 077f328..0a42960 100644 --- a/Nginx/nginx.conf +++ b/Nginx/nginx.conf @@ -36,7 +36,7 @@ http { # SSL Settings ## - ssl_protocols TLSv1.2; + ssl_protocols TLSv1.2 TLSv1.3; ssl_prefer_server_ciphers on; ssl_stapling on; #ssl_stapling_verify on; @@ -77,7 +77,7 @@ http { # Passenger shit ## - passenger_max_pool_size 18; + #passenger_max_pool_size 18; ## # Virtual Host Configs