Skip to content

Commit a1c66e9

Browse files
authored
Add nginx default site conf
Signed-off-by: GitHub <noreply@github.com>
1 parent 715343f commit a1c66e9

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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+
}

0 commit comments

Comments
 (0)