-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BC-8404 - Move tldraw config to issolate it from server config #42
base: main
Are you sure you want to change the base?
Changes from all commits
ff2df4a
c457e1a
3366d6c
bfa9856
7dfd2e8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
REDIS=redis://localhost:6379 | ||
API_HOST=http://localhost:3030 | ||
ADMIN_API__ALLOWED_API_KEYS=randomString | ||
AUTHORIZATION_API_HOST=http://localhost:3030 | ||
|
||
LOGGER_LOG_LEVEL=debug | ||
|
||
REDIS_URL=redis://localhost:6379 | ||
|
||
S3_ACCESS_KEY=miniouser | ||
S3_BUCKET=ydocs | ||
S3_ENDPOINT=localhost | ||
S3_PORT=9000 | ||
S3_SSL=false | ||
S3_ACCESS_KEY=miniouser | ||
S3_SECRET_KEY=miniouser | ||
S3_SSL=false | ||
|
||
WS_PORT=3345 | ||
|
||
TLDRAW__WEBSOCKET_URL=ws://localhost:3345 | ||
FEATURE_TLDRAW_ENABLED=true | ||
SERVER_FEATURE_TLDRAW_ENABLED=true | ||
SERVER_WEBSOCKET_URL=ws://localhost:3345 | ||
|
||
NEST_LOG_LEVEL=debug | ||
EXIT_ON_ERROR=true | ||
X_API_ALLOWED_KEYS=randomString |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,15 @@ | ||
API_HOST=http://localhost:3030 | ||
ADMIN_API__ALLOWED_API_KEYS=randomString | ||
AUTHORIZATION_API_HOST=http://localhost:3030 | ||
|
||
LOGGER_LOG_LEVEL=error | ||
|
||
S3_ACCESS_KEY=miniouser | ||
S3_BUCKET=ydocs | ||
S3_ENDPOINT=localhost | ||
S3_PORT=9000 | ||
S3_SSL=false | ||
S3_ACCESS_KEY=miniouser | ||
S3_SECRET_KEY=miniouser | ||
S3_SSL=false | ||
|
||
WS_PORT=3345 | ||
|
||
TLDRAW__WEBSOCKET_URL=ws://localhost:3345 | ||
TLDRAW__ASSETS_ENABLED=true | ||
TLDRAW__ASSETS_MAX_SIZE_BYTES=10485760 | ||
TLDRAW__ASSETS_ALLOWED_MIME_TYPES_LIST="image/png,image/jpeg,image/gif,image/svg+xml" | ||
FEATURE_TLDRAW_ENABLED=true | ||
SERVER_FEATURE_TLDRAW_ENABLED=true | ||
SERVER_WEBSOCKET_URL=ws://localhost:3345 | ||
|
||
NEST_LOG_LEVEL=debug | ||
EXIT_ON_ERROR=true | ||
X_API_ALLOWED_KEYS=randomString |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
TLDRAW_ASSETS_ALLOWED_MIME_TYPES_LIST : "image/png,image/jpeg,image/gif,image/svg+xml" | ||
TLDRAW_LOG_LEVEL: "error" | ||
TLDRAW_METRICS_COLLECT_DEFAULT: "true" | ||
TLDRAW_SERVER_ASSETS_ENABLED: "true" | ||
TLDRAW_WEBSOCKET_PATH: "/tldraw-server" |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,16 +6,13 @@ metadata: | |
labels: | ||
app: tldraw-server | ||
data: | ||
API_HOST: "http://api-svc:3030" | ||
WS_PATH_PREFIX: "/tldraw-server" | ||
WS_PORT: "3345" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What happend to the WS_PORT? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is default in code |
||
FEATURE_PROMETHEUS_METRICS_ENABLED: "true" | ||
AUTHORIZATION_API_HOST: "{{ API_HOST_URI }}" | ||
LOGGER_LOG_LEVEL: "{{ TLDRAW_LOG_LEVEL }}" | ||
METRICS_COLLECT_DEFAULT: "{{ TLDRAW_METRICS_COLLECT_DEFAULT }}" | ||
REDIS_CLUSTER_ENABLED: "true" | ||
REDIS_SENTINEL_SERVICE_NAME: "valkey-headless.{{ NAMESPACE }}.svc.cluster.local" | ||
TLDRAW__WEBSOCKET_URL: "wss://{{ DOMAIN }}/tldraw-server" | ||
TLDRAW__ASSETS_ENABLED: "true" | ||
TLDRAW__ASSETS_MAX_SIZE_BYTES: "10485760" | ||
TLDRAW__ASSETS_ALLOWED_MIME_TYPES_LIST: "image/png,image/jpeg,image/gif,image/svg+xml" | ||
FEATURE_TLDRAW_ENABLED: "true" | ||
NEST_LOG_LEVEL: "info" | ||
EXIT_ON_ERROR: "true" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. no more exit on error? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is default true in code |
||
SERVER_ASSETS_ALLOWED_MIME_TYPES_LIST: "{{ TLDRAW_ASSETS_ALLOWED_MIME_TYPES_LIST }}" | ||
SERVER_ASSETS_ENABLED: "{{ TLDRAW_SERVER_ASSETS_ENABLED }}" | ||
SERVER_FEATURE_TLDRAW_ENABLED: "{{ FEATURE_TLDRAW_ENABLED }}" | ||
SERVER_WEBSOCKET_PATH: "{{ TLDRAW_WEBSOCKET_PATH }}" | ||
SERVER_WEBSOCKET_URL: "wss://{{ DOMAIN }}{{ TLDRAW_WEBSOCKET_PATH }}" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"exclude": ["node_modules", "test", "dist", "**/*spec.ts"] | ||
"exclude": ["node_modules", "test", "dist", "**/*spec.ts", "scripts"] | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happend to the API_HOST?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename to AUTHORIZATION_API_HOST