Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Письменов Дмитрий Иванович
/
yourroomads
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 719e61c1
authored
Jul 29, 2020
by
Jonathan Reinink
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update config files
1 parent
a06408cb
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
117 additions
and
88 deletions
config/app.php
config/cache.php
config/cors.php
config/database.php
config/filesystems.php
config/mail.php
config/queue.php
config/session.php
config/app.php
View file @
719e61c
...
@@ -39,7 +39,7 @@ return [
...
@@ -39,7 +39,7 @@ return [
|
|
*/
*/
'debug'
=>
env
(
'APP_DEBUG'
,
false
),
'debug'
=>
(
bool
)
env
(
'APP_DEBUG'
,
false
),
/*
/*
|--------------------------------------------------------------------------
|--------------------------------------------------------------------------
...
@@ -207,6 +207,7 @@ return [
...
@@ -207,6 +207,7 @@ return [
'File'
=>
Illuminate\Support\Facades\File
::
class
,
'File'
=>
Illuminate\Support\Facades\File
::
class
,
'Gate'
=>
Illuminate\Support\Facades\Gate
::
class
,
'Gate'
=>
Illuminate\Support\Facades\Gate
::
class
,
'Hash'
=>
Illuminate\Support\Facades\Hash
::
class
,
'Hash'
=>
Illuminate\Support\Facades\Hash
::
class
,
'Http'
=>
Illuminate\Support\Facades\Http
::
class
,
'Lang'
=>
Illuminate\Support\Facades\Lang
::
class
,
'Lang'
=>
Illuminate\Support\Facades\Lang
::
class
,
'Log'
=>
Illuminate\Support\Facades\Log
::
class
,
'Log'
=>
Illuminate\Support\Facades\Log
::
class
,
'Mail'
=>
Illuminate\Support\Facades\Mail
::
class
,
'Mail'
=>
Illuminate\Support\Facades\Mail
::
class
,
...
...
config/cache.php
View file @
719e61c
...
@@ -39,6 +39,7 @@ return [
...
@@ -39,6 +39,7 @@ return [
'array'
=>
[
'array'
=>
[
'driver'
=>
'array'
,
'driver'
=>
'array'
,
'serialize'
=>
false
,
],
],
'database'
=>
[
'database'
=>
[
...
...
config/cors.php
0 → 100644
View file @
719e61c
<?php
return
[
/*
|--------------------------------------------------------------------------
| Cross-Origin Resource Sharing (CORS) Configuration
|--------------------------------------------------------------------------
|
| Here you may configure your settings for cross-origin resource sharing
| or "CORS". This determines what cross-origin operations may execute
| in web browsers. You are free to adjust these settings as needed.
|
| To learn more: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
|
*/
'paths'
=>
[
'api/*'
],
'allowed_methods'
=>
[
'*'
],
'allowed_origins'
=>
[
'*'
],
'allowed_origins_patterns'
=>
[],
'allowed_headers'
=>
[
'*'
],
'exposed_headers'
=>
[],
'max_age'
=>
0
,
'supports_credentials'
=>
false
,
];
config/database.php
View file @
719e61c
...
@@ -130,16 +130,16 @@ return [
...
@@ -130,16 +130,16 @@ return [
'url'
=>
env
(
'REDIS_URL'
),
'url'
=>
env
(
'REDIS_URL'
),
'host'
=>
env
(
'REDIS_HOST'
,
'127.0.0.1'
),
'host'
=>
env
(
'REDIS_HOST'
,
'127.0.0.1'
),
'password'
=>
env
(
'REDIS_PASSWORD'
,
null
),
'password'
=>
env
(
'REDIS_PASSWORD'
,
null
),
'port'
=>
env
(
'REDIS_PORT'
,
6379
),
'port'
=>
env
(
'REDIS_PORT'
,
'6379'
),
'database'
=>
env
(
'REDIS_DB'
,
0
),
'database'
=>
env
(
'REDIS_DB'
,
'0'
),
],
],
'cache'
=>
[
'cache'
=>
[
'url'
=>
env
(
'REDIS_URL'
),
'url'
=>
env
(
'REDIS_URL'
),
'host'
=>
env
(
'REDIS_HOST'
,
'127.0.0.1'
),
'host'
=>
env
(
'REDIS_HOST'
,
'127.0.0.1'
),
'password'
=>
env
(
'REDIS_PASSWORD'
,
null
),
'password'
=>
env
(
'REDIS_PASSWORD'
,
null
),
'port'
=>
env
(
'REDIS_PORT'
,
6379
),
'port'
=>
env
(
'REDIS_PORT'
,
'6379'
),
'database'
=>
env
(
'REDIS_CACHE_DB'
,
1
),
'database'
=>
env
(
'REDIS_CACHE_DB'
,
'1'
),
],
],
],
],
...
...
config/filesystems.php
View file @
719e61c
...
@@ -62,8 +62,24 @@ return [
...
@@ -62,8 +62,24 @@ return [
'region'
=>
env
(
'AWS_DEFAULT_REGION'
),
'region'
=>
env
(
'AWS_DEFAULT_REGION'
),
'bucket'
=>
env
(
'AWS_BUCKET'
),
'bucket'
=>
env
(
'AWS_BUCKET'
),
'url'
=>
env
(
'AWS_URL'
),
'url'
=>
env
(
'AWS_URL'
),
'endpoint'
=>
env
(
'AWS_ENDPOINT'
),
],
],
],
],
/*
|--------------------------------------------------------------------------
| Symbolic Links
|--------------------------------------------------------------------------
|
| Here you may configure the symbolic links that will be created when the
| `storage:link` Artisan command is executed. The array keys should be
| the locations of the links and the values should be their targets.
|
*/
'links'
=>
[
public_path
(
'storage'
)
=>
storage_path
(
'app/public'
),
],
];
];
config/mail.php
View file @
719e61c
...
@@ -4,45 +4,73 @@ return [
...
@@ -4,45 +4,73 @@ return [
/*
/*
|--------------------------------------------------------------------------
|--------------------------------------------------------------------------
|
Mail Driv
er
|
Default Mail
er
|--------------------------------------------------------------------------
|--------------------------------------------------------------------------
|
|
| Laravel supports both SMTP and PHP's "mail" function as drivers for the
| This option controls the default mailer that is used to send any email
| sending of e-mail. You may specify which one you're using throughout
| messages sent by your application. Alternative mailers may be setup
| your application here. By default, Laravel is setup for SMTP mail.
| and used as needed; however, this mailer will be used by default.
|
| Supported: "smtp", "sendmail", "mailgun", "ses",
| "postmark", "log", "array"
|
|
*/
*/
'd
river'
=>
env
(
'MAIL_DRIV
ER'
,
'smtp'
),
'd
efault'
=>
env
(
'MAIL_MAIL
ER'
,
'smtp'
),
/*
/*
|--------------------------------------------------------------------------
|--------------------------------------------------------------------------
|
SMTP Host Addres
s
|
Mailer Configuration
s
|--------------------------------------------------------------------------
|--------------------------------------------------------------------------
|
|
| Here you may
provide the host address of the SMTP server used by your
| Here you may
configure all of the mailers used by your application plus
|
applications. A default option is provided that is compatible with
|
their respective settings. Several examples have been configured for
|
the Mailgun mail service which will provide reliable deliveri
es.
|
you and you are free to add your own as your application requir
es.
|
|
*/
| Laravel supports a variety of mail "transport" drivers to be used while
| sending an e-mail. You will specify which one you are using for your
'host'
=>
env
(
'MAIL_HOST'
,
'smtp.mailgun.org'
),
| mailers below. You are free to add additional mailers as required.
/*
|--------------------------------------------------------------------------
| SMTP Host Port
|--------------------------------------------------------------------------
|
|
| This is the SMTP port used by your application to deliver e-mails to
| Supported: "smtp", "sendmail", "mailgun", "ses",
| users of the application. Like the host we have set this value to
| "postmark", "log", "array"
| stay compatible with the Mailgun e-mail application by default.
|
|
*/
*/
'mailers'
=>
[
'smtp'
=>
[
'transport'
=>
'smtp'
,
'host'
=>
env
(
'MAIL_HOST'
,
'smtp.mailgun.org'
),
'port'
=>
env
(
'MAIL_PORT'
,
587
),
'port'
=>
env
(
'MAIL_PORT'
,
587
),
'encryption'
=>
env
(
'MAIL_ENCRYPTION'
,
'tls'
),
'username'
=>
env
(
'MAIL_USERNAME'
),
'password'
=>
env
(
'MAIL_PASSWORD'
),
'timeout'
=>
null
,
'auth_mode'
=>
null
,
],
'ses'
=>
[
'transport'
=>
'ses'
,
],
'mailgun'
=>
[
'transport'
=>
'mailgun'
,
],
'postmark'
=>
[
'transport'
=>
'postmark'
,
],
'sendmail'
=>
[
'transport'
=>
'sendmail'
,
'path'
=>
'/usr/sbin/sendmail -bs'
,
],
'log'
=>
[
'transport'
=>
'log'
,
'channel'
=>
env
(
'MAIL_LOG_CHANNEL'
),
],
'array'
=>
[
'transport'
=>
'array'
,
],
],
/*
/*
|--------------------------------------------------------------------------
|--------------------------------------------------------------------------
...
@@ -62,47 +90,6 @@ return [
...
@@ -62,47 +90,6 @@ return [
/*
/*
|--------------------------------------------------------------------------
|--------------------------------------------------------------------------
| E-Mail Encryption Protocol
|--------------------------------------------------------------------------
|
| Here you may specify the encryption protocol that should be used when
| the application send e-mail messages. A sensible default using the
| transport layer security protocol should provide great security.
|
*/
'encryption'
=>
env
(
'MAIL_ENCRYPTION'
,
'tls'
),
/*
|--------------------------------------------------------------------------
| SMTP Server Username
|--------------------------------------------------------------------------
|
| If your SMTP server requires a username for authentication, you should
| set it here. This will get used to authenticate with your server on
| connection. You may also set the "password" value below this one.
|
*/
'username'
=>
env
(
'MAIL_USERNAME'
),
'password'
=>
env
(
'MAIL_PASSWORD'
),
/*
|--------------------------------------------------------------------------
| Sendmail System Path
|--------------------------------------------------------------------------
|
| When using the "sendmail" driver to send e-mails, we will need to know
| the path to where Sendmail lives on this server. A default path has
| been provided here, which will work well on most of your systems.
|
*/
'sendmail'
=>
'/usr/sbin/sendmail -bs'
,
/*
|--------------------------------------------------------------------------
| Markdown Mail Settings
| Markdown Mail Settings
|--------------------------------------------------------------------------
|--------------------------------------------------------------------------
|
|
...
@@ -120,17 +107,4 @@ return [
...
@@ -120,17 +107,4 @@ return [
],
],
],
],
/*
|--------------------------------------------------------------------------
| Log Channel
|--------------------------------------------------------------------------
|
| If you are using the "log" driver, you may specify the logging channel
| if you prefer to keep mail messages separate from other log entries
| for simpler reading. Otherwise, the default channel will be used.
|
*/
'log_channel'
=>
env
(
'MAIL_LOG_CHANNEL'
),
];
];
config/queue.php
View file @
719e61c
...
@@ -55,6 +55,7 @@ return [
...
@@ -55,6 +55,7 @@ return [
'secret'
=>
env
(
'AWS_SECRET_ACCESS_KEY'
),
'secret'
=>
env
(
'AWS_SECRET_ACCESS_KEY'
),
'prefix'
=>
env
(
'SQS_PREFIX'
,
'https://sqs.us-east-1.amazonaws.com/your-account-id'
),
'prefix'
=>
env
(
'SQS_PREFIX'
,
'https://sqs.us-east-1.amazonaws.com/your-account-id'
),
'queue'
=>
env
(
'SQS_QUEUE'
,
'your-queue-name'
),
'queue'
=>
env
(
'SQS_QUEUE'
,
'your-queue-name'
),
'suffix'
=>
env
(
'SQS_SUFFIX'
),
'region'
=>
env
(
'AWS_DEFAULT_REGION'
,
'us-east-1'
),
'region'
=>
env
(
'AWS_DEFAULT_REGION'
,
'us-east-1'
),
],
],
...
...
config/session.php
View file @
719e61c
...
@@ -18,7 +18,7 @@ return [
...
@@ -18,7 +18,7 @@ return [
|
|
*/
*/
'driver'
=>
env
(
'SESSION_DRIVER'
,
'
cooki
e'
),
'driver'
=>
env
(
'SESSION_DRIVER'
,
'
fil
e'
),
/*
/*
|--------------------------------------------------------------------------
|--------------------------------------------------------------------------
...
@@ -92,10 +92,12 @@ return [
...
@@ -92,10 +92,12 @@ return [
| Session Cache Store
| Session Cache Store
|--------------------------------------------------------------------------
|--------------------------------------------------------------------------
|
|
| Wh
en using the "apc", "memcached", or "dynamodb" session driver
s you may
| Wh
ile using one of the framework's cache driven session backend
s you may
| list a cache store that should be used for these sessions. This value
| list a cache store that should be used for these sessions. This value
| must match with one of the application's configured cache "stores".
| must match with one of the application's configured cache "stores".
|
|
| Affects: "apc", "dynamodb", "memcached", "redis"
|
*/
*/
'store'
=>
env
(
'SESSION_STORE'
,
null
),
'store'
=>
env
(
'SESSION_STORE'
,
null
),
...
@@ -166,7 +168,7 @@ return [
...
@@ -166,7 +168,7 @@ return [
|
|
*/
*/
'secure'
=>
env
(
'SESSION_SECURE_COOKIE'
,
false
),
'secure'
=>
env
(
'SESSION_SECURE_COOKIE'
),
/*
/*
|--------------------------------------------------------------------------
|--------------------------------------------------------------------------
...
@@ -188,12 +190,12 @@ return [
...
@@ -188,12 +190,12 @@ return [
|
|
| This option determines how your cookies behave when cross-site requests
| This option determines how your cookies behave when cross-site requests
| take place, and can be used to mitigate CSRF attacks. By default, we
| take place, and can be used to mitigate CSRF attacks. By default, we
|
do not enable this as other CSRF protection services are in plac
e.
|
will set this value to "lax" since this is a secure default valu
e.
|
|
| Supported: "lax", "strict", "none"
| Supported: "lax", "strict", "none"
, null
|
|
*/
*/
'same_site'
=>
null
,
'same_site'
=>
'lax'
,
];
];
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment