Skip to content
Snippets Groups Projects
Verified Commit 788b8820 authored by Andrej Ramašeuski's avatar Andrej Ramašeuski
Browse files

Nacteeni ENV z docker secrets

parent e61f7b71
No related branches found
No related tags found
No related merge requests found
Pipeline #11400 passed
0.11.0
0.12.0
......@@ -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 ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment