This is an automated email from the ASF dual-hosted git repository.
rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new aaaaedc pick the latest keys
aaaaedc is described below
commit aaaaedc15c977904c1a097dcac21ad551a59be3c
Author: Sam Ruby <[email protected]>
AuthorDate: Thu Apr 9 15:01:50 2020 -0400
pick the latest keys
changes in host names may leave older files around
---
www/board/agenda/daemon/wss.rb | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/www/board/agenda/daemon/wss.rb b/www/board/agenda/daemon/wss.rb
index 37b693f..6085f6c 100755
--- a/www/board/agenda/daemon/wss.rb
+++ b/www/board/agenda/daemon/wss.rb
@@ -18,8 +18,10 @@ require_relative './channel'
options = OpenStruct.new
options.host = '0.0.0.0'
options.port = 34234
-options.privkey = Dir['/etc/letsencrypt/live/*/privkey.pem'].first
-options.chain = Dir['/etc/letsencrypt/live/*/fullchain.pem'].first
+options.privkey = Dir['/etc/letsencrypt/live/*/privkey.pem'].
+ sort_by {|file| File.mtime file}.last
+options.chain = Dir['/etc/letsencrypt/live/*/fullchain.pem'].
+ sort_by {|file| File.mtime file}.last
options.kill = false
options.timeout = 900