-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathKanboard-nginx.conf
43 lines (36 loc) · 933 Bytes
/
Kanboard-nginx.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
server {
server_name todo.raof01.cc;
client_max_body_size 32M;
root /var/www/html;
index index.php;
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php$ {
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_index index.php;
include fastcgi_params;
}
# Deny access to the directory data
location ~* /data {
deny all;
return 404;
}
# Deny access to .htaccess
location ~ /\.ht {
deny all;
return 404;
}
listen 80;
}
server {
if ($host = todo.raof01.cc) {
return 301 https://$host$request_uri;
} # managed by Certbot
listen 80;
server_name todo.raof01.cc;
return 404; # managed by Certbot
}