smol tweaks
This commit is contained in:
parent
62673f5aec
commit
b4bcf613dd
|
@ -15,6 +15,9 @@ COPY post_text.conf .
|
||||||
# Dependency time
|
# Dependency time
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
RUN apt-get -y upgrade
|
RUN apt-get -y upgrade
|
||||||
|
# Work around for test failing due to headers being lowercase now that
|
||||||
|
# cpan.org is on HTTP/2
|
||||||
|
RUN cpanm --notest Net::HTTP
|
||||||
RUN cpanm --installdeps .
|
RUN cpanm --installdeps .
|
||||||
|
|
||||||
# Test it
|
# Test it
|
||||||
|
|
1
cpanfile
1
cpanfile
|
@ -3,7 +3,6 @@ requires 'Mojo::Pg';
|
||||||
requires 'Mojolicious::Plugin::TagHelpers::Pagination';
|
requires 'Mojolicious::Plugin::TagHelpers::Pagination';
|
||||||
requires 'Mojolicious::Plugin::AssetPack';
|
requires 'Mojolicious::Plugin::AssetPack';
|
||||||
requires 'Crypt::Passphrase::Argon2';
|
requires 'Crypt::Passphrase::Argon2';
|
||||||
requires 'Crypt::Passphrase::Bcrypt'; # Needed for old passphrases
|
|
||||||
requires 'Date::Format';
|
requires 'Date::Format';
|
||||||
requires 'XML::RSS';
|
requires 'XML::RSS';
|
||||||
requires 'CSS::Minifier::XS';
|
requires 'CSS::Minifier::XS';
|
||||||
|
|
|
@ -24,10 +24,7 @@ sub startup($self) {
|
||||||
});
|
});
|
||||||
|
|
||||||
$self->helper(authenticator => sub ($c) {
|
$self->helper(authenticator => sub ($c) {
|
||||||
state $authenticator = Crypt::Passphrase->new(
|
state $authenticator = Crypt::Passphrase->new(encoder => 'Argon2')
|
||||||
encoder => 'Argon2',
|
|
||||||
validators => ['Bcrypt'], # For old passphrases
|
|
||||||
)
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$self->helper(hr => sub ($c) {
|
$self->helper(hr => sub ($c) {
|
||||||
|
|
Loading…
Reference in a new issue