Commit e06e56f1 authored by Egor Kremnev's avatar Egor Kremnev

fix scripts

parent cf2e996b
......@@ -2,7 +2,7 @@
## Установка пхп
1. sudo add-apt-repository ppa:ondrej/php
2. sudo apt-get update
3. sudo apt-get install php8.0 php8.0-curl php8.0-mbstring php-sqlite3 php-xml php8.0-zip php-mbstring php-xml php8.0-fpm php-mysql
3. sudo apt-get install php8.0 php8.0-curl php8.0-mbstring php-sqlite3 php-xml php8.0-zip php-mbstring php-xml php8.0-fpm php-mysql php8.0-fpm
## Установка стабильных зависимостей для фронтенда
4. sudo apt install nodejs
......
server {
listen 80;
server_name 104.248.29.4; # Здесь адрес вашего сервера
listen 80 default_server;
listen [::]:80 default_server;
server_name _; # Здесь адрес вашего сервера
root /home/demo/application/public;
add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
add_header X-Content-Type-Options "nosniff";
index index.html index.htm index.php;
charset utf-8;
index index.php;
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$ {
try_files $uri =404;
fastcgi_pass unix:/var/run/php/php8.1-fpm.sock; # Указываем актуальную для вашего сервера версию php
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location ~ /\.(?!well-known).* {
deny all;
location ~* \.(jpg|jpeg|png|gif|ico|css|js)$ {
expires 1y;
add_header Cache-Control "public, no-transform";
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment