mirror of
https://github.com/hexastack/hexabot
synced 2025-01-22 18:45:57 +00:00
Revert "Revert "fix: persist subscriber avatars""
This commit is contained in:
parent
5cfe54382c
commit
f12b6a4d2c
@ -104,9 +104,11 @@ export const config: Config = {
|
|||||||
},
|
},
|
||||||
parameters: {
|
parameters: {
|
||||||
uploadDir:
|
uploadDir:
|
||||||
(process.env.UPLOAD_DIR && join(process.cwd(), process.env.UPLOAD_DIR)) ??
|
(process.env.UPLOAD_DIR ? join(process.cwd(), process.env.UPLOAD_DIR)) :
|
||||||
join(process.cwd(), 'uploads'),
|
join(process.cwd(), 'uploads'),
|
||||||
avatarDir: process.env.AVATAR_DIR ?? join(process.cwd(), 'avatars'),
|
avatarDir:
|
||||||
|
(process.env.AVATAR_DIR ? join(process.cwd(), process.env.AVATAR_DIR)) :
|
||||||
|
join(process.cwd(), 'avatars'),
|
||||||
storageMode: 'disk',
|
storageMode: 'disk',
|
||||||
maxUploadSize: process.env.UPLOAD_MAX_SIZE_IN_BYTES
|
maxUploadSize: process.env.UPLOAD_MAX_SIZE_IN_BYTES
|
||||||
? Number(process.env.UPLOAD_MAX_SIZE_IN_BYTES)
|
? Number(process.env.UPLOAD_MAX_SIZE_IN_BYTES)
|
||||||
|
@ -15,6 +15,7 @@ HTTPS_ENABLED=false
|
|||||||
SESSION_SECRET=f661ff500fff6b0c8f91310b6fff6b0c
|
SESSION_SECRET=f661ff500fff6b0c8f91310b6fff6b0c
|
||||||
SESSION_NAME=s.id
|
SESSION_NAME=s.id
|
||||||
UPLOAD_DIR=/uploads
|
UPLOAD_DIR=/uploads
|
||||||
|
AVATAR_DIR=/avatars
|
||||||
UPLOAD_MAX_SIZE_IN_BYTES=2000000
|
UPLOAD_MAX_SIZE_IN_BYTES=2000000
|
||||||
INVITATION_JWT_SECRET=dev_only
|
INVITATION_JWT_SECRET=dev_only
|
||||||
INVITATION_EXPIRES_IN=24h
|
INVITATION_EXPIRES_IN=24h
|
||||||
@ -71,4 +72,3 @@ APP_REDIS_PORT=9001
|
|||||||
REDIS_ENABLED=false
|
REDIS_ENABLED=false
|
||||||
REDIS_HOST=redis
|
REDIS_HOST=redis
|
||||||
REDIS_PORT=6379
|
REDIS_PORT=6379
|
||||||
|
|
||||||
|
@ -12,6 +12,7 @@ services:
|
|||||||
- app-network
|
- app-network
|
||||||
volumes:
|
volumes:
|
||||||
- api-data:/app/uploads
|
- api-data:/app/uploads
|
||||||
|
- api-avatars-data:/app/avatars
|
||||||
depends_on:
|
depends_on:
|
||||||
mongo:
|
mongo:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
@ -55,6 +56,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
mongo-data:
|
mongo-data:
|
||||||
api-data:
|
api-data:
|
||||||
|
api-avatars-data:
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
db-network:
|
db-network:
|
||||||
|
Loading…
Reference in New Issue
Block a user