Sha256: 8bbfe272d8a195c92bbaf50944e091640cb531eea65a657237c95c500e560e54

Contents?: true

Size: 992 Bytes

Versions: 7

Compression:

Stored size: 992 Bytes

Contents

  ##
  # HttpPost [Notifier]
  #
  # For details, see:
  # https://github.com/meskyanichi/backup/wiki/Notifiers
  #
  notify_by HttpPost do |post|
    post.on_success = true
    post.on_warning = true
    post.on_failure = true

    # URI to post the notification to.
    # Port may be specified if needed.
    # If Basic Authentication is required, supply user:pass.
    post.uri = 'https://user:pass@your.domain.com:8443/path'

    ##
    # Optional
    #
    # Additional headers to send.
    # post.headers = { 'Authentication' => 'my_auth_info' }
    #
    # Additional form params to post.
    # post.params = { 'auth_token' => 'my_token' }
    #
    # Successful response codes. Default: 200
    # post.success_codes = [200, 201, 204]
    #
    # Defaults to true on most systems.
    # Force with +true+, disable with +false+
    # post.ssl_verify_peer = false
    #
    # Supplied by default. Override with a custom 'cacert.pem' file.
    # post.ssl_ca_file = '/my/cacert.pem'
  end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
backup-3.11.0 templates/cli/notifier/http_post
backup-3.10.0 templates/cli/notifier/http_post
backup-3.9.0 templates/cli/notifier/http_post
backup-3.8.0 templates/cli/notifier/http_post
backup-3.7.2 templates/cli/notifier/http_post
backup-3.7.1 templates/cli/notifier/http_post
backup-3.7.0 templates/cli/notifier/http_post