fix nginx conf

merge-requests/2/head
Matthew 2022-10-07 19:57:42 -04:00
parent 5214af682c
commit d890404437
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 34 additions and 0 deletions

View File

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