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; + } +}