Projekt

Obecné

Profil

Stáhnout (1.78 KB) Statistiky
| Větev: | Revize:
1
server {
2
    listen 80;
3
    listen [::]:80;
4
    server_name heatmap.zcu.cz www.heatmap.zcu.cz;
5

    
6
    location ~ /.well-known {
7
        allow all;
8
        root /var/www/symfony/public;
9
    }
10
    # Redirect all HTTP requests to HTTPS with a 301 Moved Permanently response.
11
    return 301 https://$server_name$request_uri;
12
}
13
server {
14
    listen 443 ssl;
15
    listen [::]:443 ssl;
16
    server_name www.heatmap.zcu.cz;
17
    ssl_certificate /root/.acme.sh/heatmap.zcu.cz/fullchain.cer;
18
    ssl_certificate_key /root/.acme.sh/heatmap.zcu.cz/heatmap.zcu.cz.key;
19
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
20
    ssl_prefer_server_ciphers on;
21
    ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
22

    
23
    return 301 https://heatmap.zcu.cz$request_uri;
24
}
25
server {
26
    listen 443 ssl;
27
    listen [::]:443 ssl;
28

    
29
    server_name heatmap.zcu.cz;
30
    ssl_certificate /root/.acme.sh/heatmap.zcu.cz/fullchain.cer;
31
    ssl_certificate_key /root/.acme.sh/heatmap.zcu.cz/heatmap.zcu.cz.key;
32

    
33
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
34
    ssl_prefer_server_ciphers on;
35
    ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
36

    
37
    root /var/www/symfony/public;
38

    
39
    index index.php index.html index.htm;
40

    
41
    location / {
42
        try_files $uri $uri/ /index.php$is_args$args;
43
    }
44

    
45
    location ~ \.php$ {
46
        try_files $uri /index.php =404;
47
        fastcgi_pass php-upstream;
48
        fastcgi_index index.php;
49
        fastcgi_buffers 16 16k;
50
        fastcgi_buffer_size 32k;
51
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
52
        fastcgi_read_timeout 600;
53
        include fastcgi_params;
54
    }
55

    
56
    location ~ /\.ht {
57
        deny all;
58
    }
59
    location ~ /.well-known {
60
        allow all;
61
        root /var/www/symfony/public;
62
    }
63
}
    (1-1/1)