File tree Expand file tree Collapse file tree 6 files changed +8
-15
lines changed
Expand file tree Collapse file tree 6 files changed +8
-15
lines changed Original file line number Diff line number Diff line change 11# This is a simple configuration to get this running using docker compose.
22
3- REDIS =redis://redis:6379
3+ YSR_REDIS =redis://redis:6379
44
55S3_ENDPOINT=minio
66S3_PORT=9000
77S3_SSL=false
88S3_ACCESS_KEY=minioadmin
99S3_SECRET_KEY=minioadmin
1010
11- NO_AUTH=true
1211# YDOC_UPDATE_CALLBACK=http://demo:5173/ydoc
1312
1413# log everything
Original file line number Diff line number Diff line change 11# ## Redis endpoint
2- REDIS = redis://localhost:6379
3- # REDIS_PREFIX =y # by default "y:" is prepended to all used redis keys
2+ YSR_REDIS = redis://localhost:6379
3+ # YSR_REDIS_PREFIX =y # by default "y:" is prepended to all used redis keys
44
55# ## y-redis server component
66# PORT=3002 # The port that is used for listening for websocket connections
@@ -20,9 +20,6 @@ S3_SECRET_KEY=minioadmin
2020# POSTGRES=postgres://user:pass@localhost/database
2121# POSTGRES_TESTDB=yredis_tests ## use a different database for testing
2222
23- # ## Skip authentication
24- # NO_AUTH=true
25-
2623# ## Auth signature
2724# # The auth server authenticates web clients using json-web-tokens (jwt).
2825# # They are generated and validated using the following json-web-keys (jwk).
Original file line number Diff line number Diff line change 11### Redis endpoint
2- REDIS =redis://localhost:36379
3- # REDIS_PREFIX =y # by default "y:" is prepended to all used redis keys
2+ YSR_REDIS =redis://localhost:36379
3+ # YSR_REDIS_PREFIX =y # by default "y:" is prepended to all used redis keys
44
55### y-redis server component
66# PORT=3002 # The port that is used for listening for websocket connections
@@ -20,9 +20,6 @@ S3_SECRET_KEY=minioadmin
2020POSTGRES=postgres://yredis:yredis@localhost:35432/yredis
2121POSTGRES_TESTDB=yredis_tests ## use a different database for testing
2222
23- ### Skip authentication
24- # NO_AUTH=true
25-
2623### Auth signature
2724## The auth server authenticates web clients using json-web-tokens (jwt).
2825## They are generated and validated using the following json-web-keys (jwk).
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import * as env from 'lib0/environment'
55import * as server from '../src/index.js'
66
77const port = number . parseInt ( env . getConf ( 'port' ) || '3002' )
8- const redisPrefix = env . getConf ( 'redis-prefix' ) || 'y'
8+ const redisPrefix = env . getConf ( 'ysr- redis-prefix' ) || 'y'
99const postgresUrl = env . getConf ( 'postgres' )
1010const s3Endpoint = env . getConf ( 's3-endpoint' )
1111
Original file line number Diff line number Diff line change 33import * as env from 'lib0/environment'
44import * as api from '../src/api.js'
55
6- const redisPrefix = env . getConf ( 'redis-prefix' ) || 'y'
6+ const redisPrefix = env . getConf ( 'ysr- redis-prefix' ) || 'y'
77const postgresUrl = env . getConf ( 'postgres' )
88const s3Endpoint = env . getConf ( 's3-endpoint' )
99
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import * as time from 'lib0/time'
1616const logWorker = logging . createModuleLogger ( '@y/redis/api/worker' )
1717// const logApi = logging.createModuleLogger('@y/redis/api')
1818
19- export const redisUrl = env . ensureConf ( 'redis' )
19+ export const redisUrl = env . ensureConf ( 'ysr- redis' )
2020
2121let ydocUpdateCallback = env . getConf ( 'ydoc-update-callback' )
2222if ( ydocUpdateCallback != null && ydocUpdateCallback . slice ( - 1 ) !== '/' ) {
You can’t perform that action at this time.
0 commit comments