From d890404437e867880b0e34c626c75cd724b74ce0 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Fri, 7 Oct 2022 19:57:42 -0400 Subject: [PATCH] fix nginx conf --- .../Server Blocks/time.libraryofcode.org.conf | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Nginx/Server Blocks/time.libraryofcode.org.conf diff --git a/Nginx/Server Blocks/time.libraryofcode.org.conf b/Nginx/Server Blocks/time.libraryofcode.org.conf new file mode 100644 index 0000000..f643472 --- /dev/null +++ b/Nginx/Server Blocks/time.libraryofcode.org.conf @@ -0,0 +1,34 @@ +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + server_name time.libraryofcode.org; + + ssl_certificate /etc/nginx/ssl/org.chain.crt; + ssl_certificate_key /etc/nginx/ssl/org.key.pem; + + root /opt/kimai2/public; + index index.php; + + access_log off; + log_not_found off; + + location ~ /\.ht { + deny all; + } + + location / { + try_files $uri /index.php$is_args$args; + } + + location ~ ^/index\.php(/|$) { + fastcgi_pass unix:/run/php/php8.1-fpm.sock; + fastcgi_split_path_info ^(.+\.php)(/.*)$; + include fastcgi.conf; + fastcgi_param PHP_ADMIN_VALUE "open_basedir=$document_root/..:/tmp/"; + internal; + } + + location ~ \.php$ { + return 404; + } +}