summarylogtreecommitdiffstats
path: root/nginx-location.conf
blob: 6f79bc043151cf664ce50b569652c94fd64c84d6 (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

        ###
        ## 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 /carddav {
	    root /usr/share/webapps/sabre-zarafa;

	    ## [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 DENY;
    	    add_header X-Content-Type-Options nosniff;

            fastcgi_pass    unix:/run/php-fpm/sabre-zarafa.sock;
            include         fastcgi_params;
            fastcgi_param   SCRIPT_FILENAME    $document_root/server.php;
            fastcgi_param   SCRIPT_NAME        $fastcgi_script_name;
	}