mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 14:34:44 +02:00
Update env vars
This commit is contained in:
parent
1f9c98ba61
commit
7c39c00400
@ -7,6 +7,7 @@ APP_LOCALE=en
|
|||||||
APP_ENVIRONMENT_ONLY=true
|
APP_ENVIRONMENT_ONLY=true
|
||||||
|
|
||||||
LOG_CHANNEL=daily
|
LOG_CHANNEL=daily
|
||||||
|
LOG_STACK=single
|
||||||
LOG_DEPRECATIONS_CHANNEL=null
|
LOG_DEPRECATIONS_CHANNEL=null
|
||||||
LOG_LEVEL=debug
|
LOG_LEVEL=debug
|
||||||
|
|
||||||
@ -21,7 +22,7 @@ REDIS_HOST=127.0.0.1
|
|||||||
REDIS_PASSWORD=null
|
REDIS_PASSWORD=null
|
||||||
REDIS_PORT=6379
|
REDIS_PORT=6379
|
||||||
|
|
||||||
CACHE_DRIVER=file
|
CACHE_STORE=file
|
||||||
QUEUE_CONNECTION=redis
|
QUEUE_CONNECTION=redis
|
||||||
SESSION_DRIVER=file
|
SESSION_DRIVER=file
|
||||||
|
|
||||||
@ -38,3 +39,6 @@ MAIL_FROM_ADDRESS=no-reply@example.com
|
|||||||
MAIL_FROM_NAME="Panel Administrator"
|
MAIL_FROM_NAME="Panel Administrator"
|
||||||
# Set this to your domain to prevent it defaulting to 'localhost', causing mail servers such as Gmail to reject your mail
|
# Set this to your domain to prevent it defaulting to 'localhost', causing mail servers such as Gmail to reject your mail
|
||||||
# MAIL_EHLO_DOMAIN=panel.example.com
|
# MAIL_EHLO_DOMAIN=panel.example.com
|
||||||
|
SESSION_ENCRYPT=false
|
||||||
|
SESSION_PATH=/
|
||||||
|
SESSION_DOMAIN=null
|
||||||
|
44
.github/docker/README.md
vendored
44
.github/docker/README.md
vendored
@ -29,28 +29,28 @@ There are multiple environment variables to configure the panel when not providi
|
|||||||
|
|
||||||
Note: If your `APP_URL` starts with `https://` you need to provide an `LE_EMAIL` as well so Certificates can be generated.
|
Note: If your `APP_URL` starts with `https://` you need to provide an `LE_EMAIL` as well so Certificates can be generated.
|
||||||
|
|
||||||
| Variable | Description | Required |
|
| Variable | Description | Required |
|
||||||
| ------------------- | ------------------------------------------------------------------------------ | -------- |
|
|-------------------| ------------------------------------------------------------------------------ | -------- |
|
||||||
| `APP_URL` | The URL the panel will be reachable with (including protocol) | yes |
|
| `APP_URL` | The URL the panel will be reachable with (including protocol) | yes |
|
||||||
| `APP_TIMEZONE` | The timezone to use for the panel | yes |
|
| `APP_TIMEZONE` | The timezone to use for the panel | yes |
|
||||||
| `LE_EMAIL` | The email used for letsencrypt certificate generation | yes |
|
| `LE_EMAIL` | The email used for letsencrypt certificate generation | yes |
|
||||||
| `DB_HOST` | The host of the mysql instance | yes |
|
| `DB_HOST` | The host of the mysql instance | yes |
|
||||||
| `DB_PORT` | The port of the mysql instance | yes |
|
| `DB_PORT` | The port of the mysql instance | yes |
|
||||||
| `DB_DATABASE` | The name of the mysql database | yes |
|
| `DB_DATABASE` | The name of the mysql database | yes |
|
||||||
| `DB_USERNAME` | The mysql user | yes |
|
| `DB_USERNAME` | The mysql user | yes |
|
||||||
| `DB_PASSWORD` | The mysql password for the specified user | yes |
|
| `DB_PASSWORD` | The mysql password for the specified user | yes |
|
||||||
| `CACHE_DRIVER` | The cache driver (see [Cache drivers](#cache-drivers) for detais) | yes |
|
| `CACHE_STORE` | The cache driver (see [Cache drivers](#cache-drivers) for detais) | yes |
|
||||||
| `SESSION_DRIVER` | | yes |
|
| `SESSION_DRIVER` | | yes |
|
||||||
| `QUEUE_DRIVER` | | yes |
|
| `QUEUE_DRIVER` | | yes |
|
||||||
| `REDIS_HOST` | The hostname or IP address of the redis database | yes |
|
| `REDIS_HOST` | The hostname or IP address of the redis database | yes |
|
||||||
| `REDIS_PASSWORD` | The password used to secure the redis database | maybe |
|
| `REDIS_PASSWORD` | The password used to secure the redis database | maybe |
|
||||||
| `REDIS_PORT` | The port the redis database is using on the host | maybe |
|
| `REDIS_PORT` | The port the redis database is using on the host | maybe |
|
||||||
| `MAIL_DRIVER` | The email driver (see [Mail drivers](#mail-drivers) for details) | yes |
|
| `MAIL_DRIVER` | The email driver (see [Mail drivers](#mail-drivers) for details) | yes |
|
||||||
| `MAIL_FROM` | The email that should be used as the sender email | yes |
|
| `MAIL_FROM` | The email that should be used as the sender email | yes |
|
||||||
| `MAIL_HOST` | The host of your mail driver instance | maybe |
|
| `MAIL_HOST` | The host of your mail driver instance | maybe |
|
||||||
| `MAIL_PORT` | The port of your mail driver instance | maybe |
|
| `MAIL_PORT` | The port of your mail driver instance | maybe |
|
||||||
| `MAIL_USERNAME` | The username for your mail driver | maybe |
|
| `MAIL_USERNAME` | The username for your mail driver | maybe |
|
||||||
| `MAIL_PASSWORD` | The password for your mail driver | maybe |
|
| `MAIL_PASSWORD` | The password for your mail driver | maybe |
|
||||||
|
|
||||||
|
|
||||||
### Cache drivers
|
### Cache drivers
|
||||||
|
@ -92,7 +92,7 @@ class AppSettingsCommand extends Command
|
|||||||
);
|
);
|
||||||
|
|
||||||
$selected = config('cache.default', 'redis');
|
$selected = config('cache.default', 'redis');
|
||||||
$this->variables['CACHE_DRIVER'] = $this->option('cache') ?? $this->choice(
|
$this->variables['CACHE_STORE'] = $this->option('cache') ?? $this->choice(
|
||||||
'Cache Driver',
|
'Cache Driver',
|
||||||
self::CACHE_DRIVERS,
|
self::CACHE_DRIVERS,
|
||||||
array_key_exists($selected, self::CACHE_DRIVERS) ? $selected : null
|
array_key_exists($selected, self::CACHE_DRIVERS) ? $selected : null
|
||||||
|
@ -8,7 +8,7 @@ return [
|
|||||||
'connections' => [
|
'connections' => [
|
||||||
'mysql' => [
|
'mysql' => [
|
||||||
'driver' => 'mysql',
|
'driver' => 'mysql',
|
||||||
'url' => env('DATABASE_URL'),
|
'url' => env('DB_URL', env('DATABASE_URL')),
|
||||||
'host' => env('DB_HOST', '127.0.0.1'),
|
'host' => env('DB_HOST', '127.0.0.1'),
|
||||||
'port' => env('DB_PORT', '3306'),
|
'port' => env('DB_PORT', '3306'),
|
||||||
'database' => env('DB_DATABASE', 'panel'),
|
'database' => env('DB_DATABASE', 'panel'),
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
<env name="APP_ENV" value="testing" />
|
<env name="APP_ENV" value="testing" />
|
||||||
<env name="BCRYPT_ROUNDS" value="4" />
|
<env name="BCRYPT_ROUNDS" value="4" />
|
||||||
<env name="DB_DATABASE" value="testing" />
|
<env name="DB_DATABASE" value="testing" />
|
||||||
<env name="CACHE_DRIVER" value="array" />
|
<env name="CACHE_STORE" value="array" />
|
||||||
<env name="GUZZLE_CONNECT_TIMEOUT" value="1" />
|
<env name="GUZZLE_CONNECT_TIMEOUT" value="1" />
|
||||||
<env name="MAIL_MAILER" value="array" />
|
<env name="MAIL_MAILER" value="array" />
|
||||||
<env name="SESSION_DRIVER" value="array" />
|
<env name="SESSION_DRIVER" value="array" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user