Fix LESS import error and refactor project structure

This commit is contained in:
kirill.khorkov
2026-01-03 18:59:56 +03:00
parent 1bb0fc02e6
commit 4a8d4f8c3f
201 changed files with 891 additions and 14311 deletions

View File

@@ -1,20 +1,16 @@
#!/bin/bash
set -e
# Включаем mod_rewrite
a2enmod rewrite 2>/dev/null || true
a2enmod rewrite headers expires 2>/dev/null || true
# Устанавливаем права только на нужные директории, исключая .git
find /var/www/html -maxdepth 1 -type d ! -name '.git' -exec chown -R www-data:www-data {} \; 2>/dev/null || true
find /var/www/html -maxdepth 1 -type f -exec chown www-data:www-data {} \; 2>/dev/null || true
# Устанавливаем права на ключевые директории
chown -R www-data:www-data /var/www/html/app 2>/dev/null || true
chown -R www-data:www-data /var/www/html/config 2>/dev/null || true
chown -R www-data:www-data /var/www/html/public 2>/dev/null || true
chown -R www-data:www-data /var/www/html/uploads 2>/dev/null || true
chown -R www-data:www-data /var/www/html/storage 2>/dev/null || true
echo "Apache configured successfully"
chmod -R 775 /var/www/html/storage 2>/dev/null || true
echo "AETERNA - Apache configured successfully"
echo "DocumentRoot: /var/www/html/public"
# Запускаем Apache в foreground режиме
exec apache2-foreground

View File

@@ -1,25 +1,29 @@
<VirtualHost *:80>
ServerAdmin admin@aeterna.local
DocumentRoot /var/www/html
DocumentRoot /var/www/html/public
ServerName localhost
<Directory /var/www/html>
Options Indexes FollowSymLinks
<Directory /var/www/html/public>
Options -Indexes +FollowSymLinks
AllowOverride All
Require all granted
</Directory>
# Логирование
Alias /uploads /var/www/html/storage/uploads
<Directory /var/www/html/storage/uploads>
Options -Indexes
AllowOverride None
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# Кодировка по умолчанию
AddDefaultCharset UTF-8
# Типы файлов
AddType text/css .css
AddType text/less .less
AddType text/javascript .js
AddType image/svg+xml .svg
AddType image/webp .webp
</VirtualHost>