blob: 440cab7fafe03d3620ce60c126630ff0b3bc50f8 (
plain)
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
48
49
50
51
52
53
54
55
56
|
###
## In order to run this component you need to define a server-context in.
## /etc/nginx/nginx.conf:
##
## http {
## server {
## listen 80;
## include ${PATH_TO_THIS_LOCATION_FILE};
## }
## }
##
## Or include this file in your existing server-context.
##
location /kopano-service-overview {
root /usr/share/webapps;
index index.php;
gzip_static on;
gzip_vary on;
## [WARNING] The following header states that the browser should only communicate
## with your server over a secure connection for the next 24 months.
add_header Strict-Transport-Security max-age=63072000;
add_header X-Frame-Options SAMEORIGIN;
add_header X-Content-Type-Options nosniff;
# HIDDEN FILES AND FOLDERS
rewrite ^(.*)\/\.(.*)$ @404 break;
# Pass PHP scripts to PHP-FPM
location ~* \.php$ {
if (!-f $request_filename) {
return 404;
}
fastcgi_index index.php;
fastcgi_pass unix:/run/php-fpm/kopano-service-overview.sock;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
}
}
# Autoconfiguration in Thunderbird
# https://developer.mozilla.org/en-US/docs/Mozilla/Thunderbird/Autoconfiguration
location /config-v1.1.xml {
root /usr/share/webapps/kopano-service-overview;
fastcgi_index index.php;
fastcgi_pass unix:/run/php-fpm/kopano-service-overview.sock;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root/mozilla-account-configuration.php;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
}
|