Thanks for this great projekt. I had no trouble to install Flatpress, but if I try to open an entry I still remain on the main page. It doesn't matter if I click on the title or the "read more" link. I use version 1.2 with php 7.4 on a raspberry pi 4. Below you find my nginx entry. Does anyone have an idea where to start looking for the failure?
Best regards,
Johannes
Code: Select all
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name flatpress.example.com;
ssl_certificate /etc/letsencrypt/flatpress.example.com/rsa/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/flatpress.example.com/rsa/key.pem;
ssl_certificate /etc/letsencrypt/flatpress.example.com/ecc/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/flatpress.example.com/ecc/key.pem;
ssl_trusted_certificate /etc/letsencrypt/flatpress.example.com/ecc/ca.pem;
include /etc/nginx/snippets/ssl.conf;
include /etc/nginx/snippets/headers.conf;
root /var/www/flatpress;
index index.php index.html index.htm;
client_max_body_size 100M;
location / {
try_files $uri $uri/ /index.php;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location ^~ /data {
deny all;
}
}