File tree Expand file tree Collapse file tree
root/defaults/nginx/site-confs Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ## Version 2023/08/09 - Changelog: https://github.com/linuxserver/docker-kimai/commits/main/root/defaults/nginx/site-confs/default.conf.sample
2+
3+ server {
4+ listen 80 default_server;
5+ listen [::]:80 default_server;
6+
7+ listen 443 ssl http2 default_server;
8+ listen [::]:443 ssl http2 default_server;
9+
10+ server_name _;
11+
12+ include /config/nginx/ssl.conf;
13+
14+ root /app/www/public;
15+ index index.php;
16+
17+ location / {
18+ # enable for basic auth
19+ #auth_basic "Restricted";
20+ #auth_basic_user_file /config/nginx/.htpasswd;
21+
22+ try_files $uri $uri/ /index.php$is_args$args;
23+ }
24+
25+ location ~ ^(.+\.php)(.*)$ {
26+ fastcgi_split_path_info ^(.+\.php)(.*)$;
27+ fastcgi_pass 127.0.0.1:9000;
28+ fastcgi_index index.php;
29+ include /etc/nginx/fastcgi_params;
30+ }
31+
32+ # deny access to .htaccess/.htpasswd files
33+ location ~ /\.ht {
34+ deny all;
35+ }
36+ }
You can’t perform that action at this time.
0 commit comments