Just repository for demonstrate my skill. This project is a simple blog made on laravel framework.
- PHP 7.4
- MySQL
- Nginx (Recomented) or Apcahe
CMD:
git clone https://github.com/AkioSarkiz/PortfolioBlog.git
cd PortfolioBlog
composer install --optimize-autoloader --no-dev
php artisan key:generate
Copy env.example as .env and set your params.
Run nginx or apache.
server {
listen 80;
server_name example.com;
root /srv/example.com/public;
add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
add_header X-Content-Type-Options "nosniff";
index index.php;
charset utf-8;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
error_page 404 /index.php;
location ~ \.php$ {
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
include fastcgi_params;
}
location ~ /\.(?!well-known).* {
deny all;
}
}
link: https://portfolio_blog.webvost.info
login: testuser@g.com
password: password