diff --git a/VERSION b/VERSION index d9df1bbc0c7befdbc28d61efc28ed3e5c08d015f..ac454c6a1fc3f05f60d3772b45f0b1a5db4b9f87 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.11.0 +0.12.0 diff --git a/lib/SeMeet.pm b/lib/SeMeet.pm index 1508473f39d3a94e6bc1f03c9f108270d6da17ec..6d5e8db6588a8f58942002a9953e5d8b9b2db779 100644 --- a/lib/SeMeet.pm +++ b/lib/SeMeet.pm @@ -6,14 +6,21 @@ use Mojo::Redis; use Mojolicious::Plugin::Authentication; use Mojolicious::Plugin::I18N; use Net::OAuth2::Profile::WebServer; +use File::Find; +use Path::Tiny qw( path ); use SeMeet::Schema; use SeMeet::Model::IAPI; +use constant SECRETS => '/run/secrets'; + sub startup( $self ) { # Nacteni konfigurace my $cfg = $self->plugin('Config' => { file => 'semeet.conf'} ); + # env z docker secrets + find(sub { $ENV{$_} = path(SECRETS . "/$_")->slurp_utf8 }, SECRETS); + # Konfigurace z ENV ma prednost KEY: foreach my $key ( keys %ENV ) {