runtime: php
env: flex
manual_scaling:
instances: 1
resources:
cpu: 4
memory_gb: 4
disk_size_gb: 20
runtime_config:
document_root: public
# Ensure we skip ".env", which is only for local development
skip_files:
- .env
- .git
- /vendor/
- /node_modules/
env_variables:
# Put production environment variables here.
APP_LOG: errorlog
APP_KEY: [REDACTED]
APP_NAME: MyApp
APP_ENV: production
APP_DEBUG: false
APP_URL: https://example.com
CUSTOM_CSS: example.css
FRONTEND_URL: https://web.example.com
LOG_CHANNEL: stackdriver
LOG_SLACK_WEBHOOK_URL: https://hooks.slack.com/services/T011E768GNR/B011E7A307P/CGK4zZwTG1tieLwZ1uTx77
DB_CONNECTION: mysql
DB_HOST: 127.0.0.1
DB_PORT: 3306
DB_DATABASE: dbname
DB_USERNAME: root
DB_PASSWORD: [REDACTED]
DB_SOCKET: "[REDACTED]"
This is a part of app.yml
This is a part of composer.json
protected $middleware = [
\App\Http\Middleware\TrustProxies::class,
\App\Http\Middleware\CheckForMaintenanceMode::class,
\Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
\App\Http\Middleware\TrimStrings::class,
\Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
\App\Http\Middleware\GaeProxyIp::class,
\App\Http\Middleware\GaeSetHstsHeader::class,
\Fruitcake\Cors\HandleCors::class,
];
Use Fruitcke\Cors
and cors config im using default
'paths' => ['api/*'],
/*
* Matches the request method. `['*']` allows all methods.
*/
'allowed_methods' => ['*'],
/*
* Matches the request origin. `['*']` allows all origins. Wildcards can be used, eg `*.mydomain.com`
*/
'allowed_origins' => ['*'],
/*
* Patterns that can be used with `preg_match` to match the origin.
*/
'allowed_origins_patterns' => [],
/*
* Sets the Access-Control-Allow-Headers response header. `['*']` allows all headers.
*/
'allowed_headers' => ['*'],
Thanks for your support