2021-03-28 20:40:17 +02:00
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
server_name chiro-canto;
|
|
|
|
return 302 https://chiro-canto;
|
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 443 ssl;
|
|
|
|
server_name chiro-canto;
|
|
|
|
root /var/www/chiro-canto/public;
|
2021-04-16 19:14:52 +02:00
|
|
|
client_max_body_size 20M;
|
2021-03-28 20:40:17 +02:00
|
|
|
location / {
|
|
|
|
|
|
|
|
}
|
|
|
|
ssl_certificate /etc/nginx/ssl/cert.pem;
|
|
|
|
ssl_certificate_key /etc/nginx/ssl/privkey.pem;
|
|
|
|
index index.php index.html;
|
|
|
|
location ~ \.php$ {
|
|
|
|
fastcgi_pass unix://var/run/php-fpm/www.sock;
|
|
|
|
fastcgi_index index.php;
|
|
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
|
|
include fastcgi_params;
|
|
|
|
}
|
2021-04-17 12:20:38 +02:00
|
|
|
|
|
|
|
location /storage/records {
|
|
|
|
autoindex on;
|
|
|
|
autoindex_exact_size on;
|
|
|
|
}
|
2021-03-28 20:40:17 +02:00
|
|
|
}
|