Files
git.stella-ops.org/etc/notify.yaml.sample
master 5fd4032c7c
Some checks failed
Docs CI / lint-and-preview (push) Has been cancelled
Add channel test providers for Email, Slack, Teams, and Webhook
- Implemented EmailChannelTestProvider to generate email preview payloads.
- Implemented SlackChannelTestProvider to create Slack message previews.
- Implemented TeamsChannelTestProvider for generating Teams Adaptive Card previews.
- Implemented WebhookChannelTestProvider to create webhook payloads.
- Added INotifyChannelTestProvider interface for channel-specific preview generation.
- Created ChannelTestPreviewContracts for request and response models.
- Developed NotifyChannelTestService to handle test send requests and generate previews.
- Added rate limit policies for test sends and delivery history.
- Implemented unit tests for service registration and binding.
- Updated project files to include necessary dependencies and configurations.
2025-10-19 23:29:34 +03:00

60 lines
1.5 KiB
Plaintext

# Notify WebService sample configuration
storage:
# Use "mongo" for production deployments; set to "memory" only for tests/dev harnesses.
driver: mongo
connectionString: "mongodb://localhost:27017"
database: "stellaops_notify"
commandTimeoutSeconds: 30
authority:
enabled: true
issuer: "https://authority.stella-ops.local"
metadataAddress: "https://authority.stella-ops.local/.well-known/openid-configuration"
requireHttpsMetadata: true
allowAnonymousFallback: false
backchannelTimeoutSeconds: 30
tokenClockSkewSeconds: 60
audiences:
- notify
readScope: notify.read
adminScope: notify.admin
api:
basePath: "/api/v1/notify"
internalBasePath: "/internal/notify"
tenantHeader: "X-StellaOps-Tenant"
rateLimits:
deliveryHistory:
enabled: true
tokenLimit: 60
tokensPerPeriod: 30
replenishmentPeriodSeconds: 60
queueLimit: 20
testSend:
enabled: true
tokenLimit: 5
tokensPerPeriod: 5
replenishmentPeriodSeconds: 60
queueLimit: 2
plugins:
baseDirectory: "../"
directory: "plugins/notify"
searchPatterns:
- "StellaOps.Notify.Connectors.*.dll"
orderedPlugins:
- StellaOps.Notify.Connectors.Slack
- StellaOps.Notify.Connectors.Teams
- StellaOps.Notify.Connectors.Email
- StellaOps.Notify.Connectors.Webhook
telemetry:
enableRequestLogging: true
minimumLogLevel: Information
# When running in development without Authority, set the following instead:
# authority:
# enabled: false
# developmentSigningKey: "change-me-32-bytes-minimum-signing-key"