-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
209 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
client/.env | ||
|
||
docker-compose.prod.yml | ||
docker-compose.prod.yml | ||
redis.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/** | ||
* Config source: https://git.io/JemcF | ||
* | ||
* Feel free to let us know via PR, if you find something broken in this config | ||
* file. | ||
*/ | ||
|
||
import Env from '@ioc:Adonis/Core/Env' | ||
import { RedisConfig } from '@ioc:Adonis/Addons/Redis' | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Redis configuration | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Following is the configuration used by the Redis provider to connect to | ||
| the redis server and execute redis commands. | ||
| | ||
| Do make sure to pre-define the connections type inside `contracts/redis.ts` | ||
| file for AdonisJs to recognize connections. | ||
| | ||
| Make sure to check `contracts/redis.ts` file for defining extra connections | ||
*/ | ||
const redisConfig: RedisConfig = { | ||
connection: Env.get('REDIS_CONNECTION', 'local') as 'local', | ||
|
||
connections: { | ||
/* | ||
|-------------------------------------------------------------------------- | ||
| The default connection | ||
|-------------------------------------------------------------------------- | ||
| | ||
| The main connection you want to use to execute redis commands. The same | ||
| connection will be used by the session provider, if you rely on the | ||
| redis driver. | ||
| | ||
*/ | ||
local: { | ||
host: Env.get('REDIS_HOST', '127.0.0.1') as string, | ||
port: Env.get('REDIS_PORT', '6379') as string, | ||
password: Env.get('REDIS_PASSWORD', '') as string, | ||
db: 0, | ||
keyPrefix: '', | ||
}, | ||
} | ||
} | ||
|
||
export default redisConfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/** | ||
* Contract source: https://git.io/JemcN | ||
* | ||
* Feel free to let us know via PR, if you find something broken in this config | ||
* file. | ||
*/ | ||
|
||
declare module '@ioc:Adonis/Addons/Redis' { | ||
interface RedisConnectionsList { | ||
local: RedisConnectionConfig, | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.