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

Nacteni ENV misto cfg ze secrets

parent 6e35888d
No related branches found
No related tags found
No related merge requests found
Pipeline #11399 passed
2.5.0 2.5.1
...@@ -14,13 +14,13 @@ use constant SECRETS => '/run/secrets'; ...@@ -14,13 +14,13 @@ use constant SECRETS => '/run/secrets';
sub startup { sub startup {
my $self = shift; my $self = shift;
# env z docker secrets (maji prednost!)
find(sub { $ENV{$_} = path(SECRETS . "/$_")->slurp_utf8 }, SECRETS);
# Nacteni konfigurace # Nacteni konfigurace
my $cfg = $self->plugin('Config'); my $cfg = $self->plugin('Config');
$self->helper( cfg => sub { return $cfg; } ); $self->helper( cfg => sub { return $cfg; } );
# konfigurace z docker secrets (maji prednost!)
find(sub { $cfg->{$_} = path(SECRETS . "/$_")->slurp_utf8 }, SECRETS);
# Podpis pro cookies # Podpis pro cookies
$self->secrets($cfg->{session}{secrets}); $self->secrets($cfg->{session}{secrets});
......
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