chore: Update Docker configuration and app config

- Modified docker-compose.yml (port/environment changes)
- Updated config/app.php
- Added apache-vhost-windows.conf for Windows setup
This commit is contained in:
kirill.khorkov
2026-01-06 17:07:14 +03:00
parent a4092adf2e
commit 7f876b5c4a
3 changed files with 57 additions and 1 deletions

50
apache-vhost-windows.conf Normal file
View File

@@ -0,0 +1,50 @@
<VirtualHost *:80>
ServerAdmin admin@aeterna.local
# ВАЖНО: Замените этот путь на полный путь к вашему проекту
# Пример: C:/Users/YourUsername/Desktop/cite_practica1
DocumentRoot "C:/path/to/cite_practica1/public"
ServerName aeterna.local
ServerAlias www.aeterna.local
# Настройка директории public
<Directory "C:/path/to/cite_practica1/public">
Options -Indexes +FollowSymLinks
AllowOverride All
Require all granted
# Включение .htaccess для роутинга
DirectoryIndex index.php
</Directory>
# Алиас для загруженных файлов
Alias /uploads "C:/path/to/cite_practica1/storage/uploads"
<Directory "C:/path/to/cite_practica1/storage/uploads">
Options -Indexes
AllowOverride None
Require all granted
</Directory>
# Логи (путь к логам Apache на Windows обычно logs/ в папке Apache)
ErrorLog logs/aeterna-error.log
CustomLog logs/aeterna-access.log combined
# Кодировка по умолчанию
AddDefaultCharset UTF-8
# MIME типы
AddType text/css .css
AddType text/less .less
AddType text/javascript .js
AddType image/svg+xml .svg
AddType image/webp .webp
AddType image/jpeg .jpg .jpeg
AddType image/png .png
# Настройки PHP (если используется mod_php)
<FilesMatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>
</VirtualHost>