- Implemented buildUserAgent() method in AllegroApiClient, AllegroOAuthClient, and AllegroTrackingService to include User-Agent header in all HTTP requests to Allegro API. - Updated .env.example to include APP_VERSION and ALLEGRO_USER_AGENT_URL for configuration. - Created public /info page to provide application details required by Allegro, including app name, version, description, and contact information. - Added minimalist layout for public pages to ensure a professional appearance. - Ensured all changes comply with Allegro's API requirements for User-Agent header.
31 lines
872 B
Plaintext
31 lines
872 B
Plaintext
APP_NAME=orderPRO
|
|
APP_VERSION=1.0.0
|
|
APP_ENV=local
|
|
APP_DEBUG=true
|
|
APP_URL=http://localhost:8000
|
|
SESSION_NAME=orderpro_session
|
|
INTEGRATIONS_SECRET=change-me-long-random-secret
|
|
CRON_RUN_ON_WEB=false
|
|
CRON_WEB_LIMIT=5
|
|
# Publiczny endpoint HTTPS do triggera crona: /cron?token=...
|
|
CRON_PUBLIC_TOKEN=
|
|
|
|
DB_CONNECTION=mysql
|
|
DB_HOST=127.0.0.1
|
|
# Tylko techniczne operacje agenta (np. reczne migracje), nie dla runtime aplikacji.
|
|
DB_HOST_REMOTE=
|
|
DB_PORT=3306
|
|
DB_DATABASE=orderpro
|
|
DB_USERNAME=root
|
|
DB_PASSWORD=
|
|
DB_CHARSET=utf8mb4
|
|
|
|
# SSL/TLS — sciezka do CA bundle dla cURL
|
|
# Windows XAMPP: C:/xampp/php/extras/ssl/cacert.pem
|
|
# Linux: /etc/ssl/certs/ca-certificates.crt
|
|
CURL_CA_BUNDLE_PATH=
|
|
|
|
# Allegro User-Agent — wymagany od 01.07.2026 (art. 3.4.c Regulaminu REST API)
|
|
# Format: {APP_NAME}/{APP_VERSION} (+{ALLEGRO_USER_AGENT_URL})
|
|
ALLEGRO_USER_AGENT_URL=https://orderpro.pl/info
|