Skip to content

Commit 48fb951

Browse files
committed
fix conclits
2 parents b6625f5 + 4fba29c commit 48fb951

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
@@ -11,6 +11,10 @@ CACHE_DRIVER=file
1111
SESSION_DRIVER=file
1212
QUEUE_DRIVER=sync
1313

14+
REDIS_HOST=localhost
15+
REDIS_PASSWORD=null
16+
REDIS_PORT=6379
17+
1418
MAIL_DRIVER=smtp
1519
MAIL_HOST=mailtrap.io
1620
MAIL_PORT=2525

config/database.php

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

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

124125
],

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)