forked from cadence/breezewiki
		
	Warn if canonical_origin not present in production
This commit is contained in:
		
							parent
							
								
									4d8746e85e
								
							
						
					
					
						commit
						3d8feaba9a
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
					@ -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"))))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue