Skip to content

Commit 1173e19

Browse files
committed
Merge branch 'master' of https://github.com/SyntaxC4/laravel into SyntaxC4-master
2 parents 6722b10 + a33c66c commit 1173e19

File tree

3 files changed

+30
-2
lines changed

3 files changed

+30
-2
lines changed

.env.example

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,7 @@ MAIL_PORT=2525
1717
MAIL_USERNAME=null
1818
MAIL_PASSWORD=null
1919
MAIL_ENCRYPTION=null
20+
21+
REDIS_HOST=localhost
22+
REDiS_KEY=
23+
REDIS_PORT=6379

config/database.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,9 @@
116116
'cluster' => false,
117117

118118
'default' => [
119-
'host' => '127.0.0.1',
120-
'port' => 6379,
119+
'host' => env('REDIS_HOST', 'localhost'),
120+
'password' => env('REDIS_KEY', ''),
121+
'port' => env('REDIS_PORT', 6379),
121122
'database' => 0,
122123
],
123124

public/web.config

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<configuration>
2+
<system.webServer>
3+
<rewrite>
4+
<rules>
5+
<rule name="Imported Rule 1" stopProcessing="true">
6+
<match url="^(.*)/$" ignoreCase="false" />
7+
<conditions>
8+
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
9+
</conditions>
10+
<action type="Redirect" redirectType="Permanent" url="/{R:1}" />
11+
</rule>
12+
<rule name="Imported Rule 2" stopProcessing="true">
13+
<match url="^" ignoreCase="false" />
14+
<conditions>
15+
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
16+
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
17+
</conditions>
18+
<action type="Rewrite" url="index.php" />
19+
</rule>
20+
</rules>
21+
</rewrite>
22+
</system.webServer>
23+
</configuration>

0 commit comments

Comments
 (0)