summaryrefslogtreecommitdiff
path: root/etc/nginx/sites-enabled/drupal-demo-ssl.site
blob: 400020e0da6a9b8c19b70dcd8773c67bd4ac5078 (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
server {
	listen   443 ssl; ## listen for ipv4; this line is default and implied
 	# 	listen   [::]:80 default_server ipv6only=on; ## listen for ipv6

	server_name drupal.demo.taler.net;

	root /home/demo/drupal-demo;

	ssl_certificate /etc/letsencrypt/live/taler.net/fullchain.pem;
	ssl_certificate_key /etc/letsencrypt/live/taler.net/privkey.pem;
	ssl_prefer_server_ciphers on;
        ssl_session_cache shared:SSL:10m;
        ssl_dhparam /etc/ssl/certs/dhparam.pem;
	ssl_protocols TLSv1.2 TLSv1.1 TLSv1;
	ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';

	add_header Strict-Transport-Security "max-age=63072000; preload";

	# Make site accessible from http://localhost/

#	location / {
#            try_files $uri $uri/ =404;
#            rewrite /taler/pay /pay.php;
#            rewrite /taler/contract /generate_taler_contract.php;
#	}

#	location /fullfillment {
#            rewrite /(.*) /$1.php;	
#	}

	location ~ \.php$ {
		fastcgi_index index.php;
        	fastcgi_pass unix:/var/run/php5-fpm.sock;
		fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                include fastcgi_params;
        }

#      	location /backend {
#                rewrite /backend/(.*) /$1 break;
#	        proxy_pass http://127.0.0.1:19966;
#	        proxy_redirect off;
#	        proxy_set_header Host $host;
#	}

	client_max_body_size 10M;
	client_body_buffer_size 128k;

	include apps/drupal/drupal.conf;
}