35 lines
751 B
Plaintext
35 lines
751 B
Plaintext
|
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;
|
||
|
}
|
||
|
}
|