Ben cloudflare SSL kullanıyorum. /etc/nginx/sites-enabled da sitemi çalıştıran dosyayı şöyle paylaşıyım. Konuya göre bazı eklediğim ve çıkardığım yerler var. Böyle olması daha uygundur.
https://flarum.org/docs/install.html#url-rewriting burada nginx için

include /path/to/flarum/.nginx.conf;

eklenmesi gerektiği yazıyor. Konuda yok idi.


server {
listen 80;
listen [::]:80;
root /var/www/sourceturk/forum/public;
index index.php index.html index.htm;
server_name forum.sourceturk.net;

location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}

location ~* \.(css|js|ico|gif|jpeg|jpg|webp|png|svg|eot|otf|woff|woff2|ttf|ogg)$
{
expires max;
log_not_found off;
add_header Cache-Control "public";
add_header Pragma "public";
}

location ~ /\.
{
deny all;
}

location = /favicon.ico
{
log_not_found off;
access_log off;
}

location = /robots.txt
{
log_not_found off;
access_log off;
allow all;
}

include /var/www/sourceturk/forum/.nginx.conf;

listen 443 ssl http2;
listen [::]:443 ssl http2;
ssl on;
ssl_certificate /etc/ssl/certs/cert.pem;
ssl_certificate_key /etc/ssl/private/key.pem;
ssl_client_certificate /etc/ssl/certs/cloudflare.crt;
}