diff options
author | Niall Sheridan <nsheridan@gmail.com> | 2017-10-19 22:05:34 +0100 |
---|---|---|
committer | Niall Sheridan <nsheridan@gmail.com> | 2017-10-19 22:28:58 +0100 |
commit | eb99016e1629e690e55633de6fc63a14c53e7ea2 (patch) | |
tree | 7952ed183922fc95d880ff20b0f7964d91bedc33 | |
parent | fc5cd7426795a9b76594dd639582d6927cdb29f9 (diff) |
Warn when not using a persistent datastore
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | server/store/mem.go | 2 |
2 files changed, 3 insertions, 0 deletions
@@ -113,6 +113,7 @@ Exception to this: the `http_logfile` option **ONLY** writes to local files. - `cookie_secret`: string. Authentication key for the session cookie. This can be a secret stored in a [vault](https://www.vaultproject.io/) using the form `/vault/path/key` e.g. `/vault/secret/cashier/cookie_secret`. - `csrf_secret`: string. Authentication key for CSRF protection. This can be a secret stored in a [vault](https://www.vaultproject.io/) using the form `/vault/path/key` e.g. `/vault/secret/cashier/csrf_secret`. - `http_logfile`: string. Path to the HTTP request log. Logs are written in the [Common Log Format](https://en.wikipedia.org/wiki/Common_Log_Format). The only valid destination for logs is a local file path. +- `database`: See below. ### database diff --git a/server/store/mem.go b/server/store/mem.go index 68c5a13..c4fe14c 100644 --- a/server/store/mem.go +++ b/server/store/mem.go @@ -2,6 +2,7 @@ package store import ( "fmt" + "log" "sync" "time" @@ -94,6 +95,7 @@ func (ms *MemoryStore) clear() { // NewMemoryStore returns an in-memory CertStorer. func NewMemoryStore() *MemoryStore { + log.Println("WARNING: Using memory store to record issued certs.") return &MemoryStore{ certs: make(map[string]*CertRecord), } |