Skip to content
Snippets Groups Projects
Select Git revision
  • release default
  • master protected
  • hotfix/gtnNoToken
  • XX-4441
  • Jakub/rootless-CI
  • jonah/refactorProviders
  • Ace/Huawei
  • AceVentura/AccountBackup
  • hotfix/delete-error
  • waitingRoundsRewrite
  • dev
  • quantumSecure
  • hotfix/ratelimit
  • fullRateLimit
  • XX-3564/TlsCipherSuite
  • hotfix/notifications-db
  • hotfix/groupNotification
  • Project/LastMile
  • notls
  • url-repo-rename
  • v2.3.0
  • v2.2.0
  • v2.1.0
  • v2.0.0
  • v1.0.0
25 results

notifications-bot

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Jake Taylor authored
    4e192814
    History

    notifications-bot

    Notifications bot is used to send push notifications to users' devices via firebase. It continuously loops, polling gateway for users to notify and sending the notifications.

    Config File

    # ==================================
    # Notification Server Configuration
    # ==================================
    
    # START YAML ===
    # Verbose logging
    logLevel: "${verbose}"
    # Path to log file
    log: "${log_path}"
    
    # Database connection information
    dbUsername: "${db_username}"
    dbPassword: "${db_password}"
    dbName: "${db_name}"
    dbAddress: "${db_address}"
    
    # Path to this server's private key file
    keyPath: "${key_path}"
    # Path to this server's certificate file
    certPath: "${cert_path}"
    # The listening port of this server
    port: ${port}
    
    # Path to the firebase credentials file
    firebaseCredentialsPath: "{fb_creds_path}"
    
    # Path to the permissioning server certificate file
    permissioningCertPath: "${permissioning_cert_path}"
    # Address:port of the permissioning server
    permissioningAddress: "${permissioning_address}:${port}"
    
    # APNS parameters
    apnsKeyPath: ""
    apnsKeyID: ""
    apnsIssuer: ""
    apnsBundleID: ""
    apnsDev: true
    
    # Notification params
    notificationRate: 30  # Duration in seconds
    notificationsPerBatch: 20
    # === END YAML