-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbookstack.conf.template
More file actions
47 lines (38 loc) · 1.11 KB
/
bookstack.conf.template
File metadata and controls
47 lines (38 loc) · 1.11 KB
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
44
45
46
47
server {
listen 8181;
server_name bookstack.example.com;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
server_name bookstack.example.com;
root /var/www/bookstack/public;
# Default AlmaLinux Self-Signed Certificates
ssl_certificate /etc/pki/tls/certs/bookstack.crt;
ssl_certificate_key /etc/pki/tls/private/bookstack.key;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers HIGH:!aNULL:!MD5;
index index.php index.html;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass unix:/run/php-fpm/www.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ {
expires 1M;
access_log off;
add_header Cache-Control "public";
}
location ~* \.(?:css|js)$ {
expires 1y;
access_log off;
add_header Cache-Control "public";
}
location ~ /\.ht {
deny all;
}
}