c5580833f62152e4ac13a5d2e629ebd88b8df450
All checks were successful
Deploy back2 / deploy (push) Successful in 33s
Repo for site https://back2.iro.kosipov.ru
Autodeploy (Gitea Actions)
Workflow file: .gitea/workflows/deploy.yml
Deploy starts automatically on every push to main.
Required repository secrets in Gitea:
DEPLOY_HOST- host of the production server (example:back2.iro.kosipov.ru)DEPLOY_USER- SSH user for deployDEPLOY_PATH- absolute path to Laravel project on serverDEPLOY_SSH_KEY- private SSH key content (forDEPLOY_USER)DEPLOY_PORT- optional, defaults to22
What deployment does:
- updates project to
origin/main - runs
composer install --no-dev --optimize-autoloader - enables maintenance mode (
php artisan down) - clears stale caches, runs migrations, recreates Laravel caches
- restarts queue workers (
php artisan queue:restart) - disables maintenance mode (
php artisan up)
Server prerequisites:
php,composer,git,bashavailable in PATH- deploy user has permissions for project files and artisan commands
File Upload Basic Auth
Upload endpoints and upload page are protected by HTTP Basic Auth with 2 users from .env:
FILE_LINKS_UPLOAD_USER_1FILE_LINKS_UPLOAD_PASSWORD_1FILE_LINKS_UPLOAD_USER_2FILE_LINKS_UPLOAD_PASSWORD_2
Protected routes:
GET /filesPOST /filesPOST /api/files/upload
Download routes stay accessible by signed link:
GET /files/download/{path}(signed URL)GET /api/files/download/{path}(signed URL)
Description
Languages
Blade
54.7%
PHP
44.9%
CSS
0.2%
JavaScript
0.2%