diff options
author | Matthias Fulz | 2021-07-06 18:39:39 +0200 |
---|---|---|
committer | Matthias Fulz | 2021-07-06 18:39:39 +0200 |
commit | c9aa77be5f892a9a4ea480292a5095072b674268 (patch) | |
tree | 17f82c4efe360052dfb1dafe3565f46a87bf2e51 /kimai2-nginx.conf | |
download | aur-c9aa77be5f892a9a4ea480292a5095072b674268.tar.gz |
kimai2 stable version
Diffstat (limited to 'kimai2-nginx.conf')
-rw-r--r-- | kimai2-nginx.conf | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/kimai2-nginx.conf b/kimai2-nginx.conf new file mode 100644 index 000000000000..06656def82cf --- /dev/null +++ b/kimai2-nginx.conf @@ -0,0 +1,50 @@ +server { + listen 88.198.5.112:443 ssl; + server_name kimai2.dom; + ssl_certificate /etc/letsencrypt/live/dom/fullchain.pem; + ssl_certificate_key /etc/letsencrypt/live/dom/privkey.pem; + ssl_ciphers ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS; + ssl_protocols TLSv1 TLSv1.1 TLSv1.2; + ssl_session_cache shared:SSL:10m; + ssl_prefer_server_ciphers on; + server_tokens off; + client_max_body_size 0; + root /usr/share/webapps/kimai2/public; + index index.php; + + access_log /var/log/nginx/kimai2.access.log; + error_log /var/log/nginx/kimai2.error.log; + + location ~ /\.ht { + deny all; + } + + location / { + try_files $uri /index.php$is_args$args; + } + + location ~ ^/index\.php(/|$) { + fastcgi_pass unix:/run/php-fpm/php-fpm-kimai2.sock; + fastcgi_split_path_info ^(.+\.php)(/.*)$; + include fastcgi_params; + # You can use the document root directly: + # fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + + # But this is not working in every situation. When you are using symlinks to link the document + # root to the current version of your application, you should pass the real + # application path instead of the path to the symlink to PHP FPM. + # Otherwise, PHP's OPcache may not properly detect changes to your PHP files + # (see https://github.com/zendtech/ZendOptimizerPlus/issues/126 for more information). + fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name; + fastcgi_param DOCUMENT_ROOT $realpath_root; + + fastcgi_param PHP_VALUE memory_limit=512M; + fastcgi_param PHP_VALUE open_basedir="/usr/share/webapps/kimai2:/etc/webapps/kimai2:/tmp:/var/lib/kimai2"; + + internal; + } + + location ~ \.php$ { + return 404; + } +} |