chiro-canto/chiro-canto.conf

30 lines
703 B
Plaintext
Executable File

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;
client_max_body_size 20M;
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;
}
location /storage/records {
autoindex on;
autoindex_exact_size on;
}
}