Projekt

Obecné

Profil

Stáhnout (1.78 KB) Statistiky
| Větev: | Revize:
1 33786d3b Tomáš Ballák
server {
2
    listen 80;
3
    listen [::]:80;
4
    server_name heatmap.zcu.cz www.heatmap.zcu.cz;
5
6 ea0123cd Tomáš Ballák
    location ~ /.well-known {
7
        allow all;
8
        root /var/www/symfony/public;
9
    }
10 33786d3b Tomáš Ballák
    # Redirect all HTTP requests to HTTPS with a 301 Moved Permanently response.
11
    return 301 https://$server_name$request_uri;
12
}
13 3543e2c8 Tomáš Ballák
server {
14
    listen 443 ssl;
15
    listen [::]:443 ssl;
16 d9f642a7 Tomáš Ballák
    server_name www.heatmap.zcu.cz;
17 f83d4608 Tomáš Ballák
    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 d9f642a7 Tomáš Ballák
    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 3543e2c8 Tomáš Ballák
23 d9f642a7 Tomáš Ballák
    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 f83d4608 Tomáš Ballák
    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 a60193de ballakt
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 666cada9 Tomáš Ballák
    root /var/www/symfony/public;
38 a60193de ballakt
39 579f9cdd Tomáš Ballák
    index index.php index.html index.htm;
40
41
    location / {
42 a60193de ballakt
        try_files $uri $uri/ /index.php$is_args$args;
43 579f9cdd Tomáš Ballák
    }
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 0b05be35 Tomáš Ballák
    location ~ /.well-known {
60
        allow all;
61
        root /var/www/symfony/public;
62
    }
63 666cada9 Tomáš Ballák
}