memcached

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2018 License: MIT Imports: 4 Imported by: 29

README

Memcached http provider

Publishes challenges into memcached where they can be retrieved by nginx. Allows specifying multiple memcached servers and the responses will be published to all of them, making it easier to verify when your domain is hosted on a cluster of servers.

Example nginx config:

    location /.well-known/acme-challenge/ {
        set $memcached_key "$uri";
        memcached_pass 127.0.0.1:11211;
    }

Documentation

Overview

Package memcached implements a HTTP provider for solving the HTTP-01 challenge using memcached in combination with a webserver.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemcachedProvider

type MemcachedProvider struct {
	// contains filtered or unexported fields
}

HTTPProvider implements ChallengeProvider for `http-01` challenge

func NewMemcachedProvider

func NewMemcachedProvider(hosts []string) (*MemcachedProvider, error)

NewHTTPProvider returns a HTTPProvider instance with a configured webroot path

func (*MemcachedProvider) CleanUp

func (w *MemcachedProvider) CleanUp(domain, token, keyAuth string) error

CleanUp removes the file created for the challenge

func (*MemcachedProvider) Present

func (w *MemcachedProvider) Present(domain, token, keyAuth string) error

Present makes the token available at `HTTP01ChallengePath(token)` by creating a file in the given webroot path

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL