Ben kendi sitemde Flarum altyapısını kullanıyorum. Merak eden olursa inceleyebilir.. Kuramayan olur ise yardımcı olurum.
https://sordumsoruyu.com/Buyrun
Flarum Kurulumu - Detaylı Rehber - Ücretsiz SSL - 2020 |
61 Mesajlar | 18.751 Okunma |
gzip_vary on;
gzip_comp_level 2;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript image/svg+xml;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
sudo ln -s /etc/nginx/sites-available/flarum.conf /etc/nginx/sites-enabled/
sudo nginx -t
sudo systemctl restart nginx
include /path/to/flarum/.nginx.conf;
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;
}