Ports the gooyal notifications client (as already used by advertising) and wires it into the previously-empty PushPublisher: on each message send, the other conversation participant(s) get a push notification with the sender's name and a message preview. Failures are swallowed per-recipient so a down notifications service degrades silently rather than breaking message sending. Requires NOTIFICATIONS_BASE_PUBLIC_URL and the notifications.application.push:send OAuth2 scope to be configured before it will actually deliver. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
30 lines
1.3 KiB
Text
30 lines
1.3 KiB
Text
DB_NAME=gooyal_chat
|
|
DB_USER=root
|
|
DB_HOST=127.0.0.1
|
|
DB_PASSWORD=123456
|
|
DEBUG=true
|
|
|
|
OAUTH2_PROVIDER_BASE_PUBLIC_URL=https://accounts-staging.gooyal.ir/oauth2
|
|
OAUTH2_PROVIDER_BASE_PRIVATE_URL=https://accounts-staging.gooyal.ir/oauth2
|
|
OAUTH2_PROVIDER_CLIENT_ID=QkeJuvsPvwV2wjO2InQ7AIKfhCr0HqBWNtit2EHj
|
|
OAUTH2_PROVIDER_CLIENT_SECRET=S9AYajQRffgI7SzsxUmpzY7IMkVqlux8sW0A1scoBKgNfUFjXk3uwIMGbkBF9erMYONNVbSWemgODo6ArCDlg4UXYhaSZ8zolLhagfJ5Fk92RmrMLyY2rKv4cb209tPw
|
|
OAUTH2_PROVIDER_SCOPES=accounts.profile:retrieve wallet.application.deposit:verify wallet.application.deposit:submit
|
|
ACCOUNTS_BASE_PUBLIC_URL=https://accounts-staging.gooyal.ir
|
|
NOTIFICATIONS_BASE_PUBLIC_URL=https://notifications-staging.gooyal.ir
|
|
REDIS_BASE_URL=redis://127.0.0.1:6379/1
|
|
|
|
MATTERMOST_TOKEN=3fktq5yzw7yp7m4ty7d3nx8gph
|
|
MATTERMOST_TOKEN_ID=h5h7unnmeigxdjk4yhtywxjkow
|
|
MATTERMOST_BASE_PUBLICE_URL=https://chat.addwin.ir
|
|
MATTERMOST_BASE_PUBLIC_URL=https://chat.addwin.ir
|
|
MATTERMOST_TEAM_ID=
|
|
MATTERMOST_SERVICE_USERNAME=chat-service
|
|
MATTERMOST_SERVICE_EMAIL=chat-service@local.invalid
|
|
CHAT_LONG_POLL_TIMEOUT_SECONDS=25
|
|
CHAT_LONG_POLL_INTERVAL_SECONDS=1
|
|
MINIO_ENDPOINT=localhost:9000
|
|
MINIO_ACCESS_KEY=minioadmin
|
|
MINIO_SECRET_KEY=minioadmin
|
|
MINIO_BUCKET_CHAT=chat
|
|
MINIO_SECURE=false
|
|
MINIO_PRESIGN_EXPIRY_SECONDS=3600
|