Warn if canonical_origin not present in production

This commit is contained in:
Cadence Ember 2022-09-17 23:09:47 +12:00
parent 4d8746e85e
commit 3d8feaba9a
Signed by untrusted user: cadence
GPG key ID: BC1C2C61CF521B17

View file

@ -78,3 +78,9 @@
(hash->list (make-hasheq combined-alist)) (hash->list (make-hasheq combined-alist))
symbol<? symbol<?
#:key car)))) #:key car))))
(when (not (config-true? 'debug))
(when (not (config-true? 'canonical_origin))
(displayln
(string-append "warning: configuring canonical_origin is highly recommended for production!\n"
" see https://docs.breezewiki.com/Configuration.html"))))