View | Details | Raw Unified | Return to bug 26625
Collapse All | Expand All

(-)a/Koha/App/Intranet.pm (+7 lines)
Lines 24-32 use Mojo::Base 'Mojolicious'; Link Here
24
use Koha::Caches;
24
use Koha::Caches;
25
use Koha::Cache::Memory::Lite;
25
use Koha::Cache::Memory::Lite;
26
26
27
use C4::Context;
28
27
sub startup {
29
sub startup {
28
    my ($self) = @_;
30
    my ($self) = @_;
29
31
32
    my $config = C4::Context->config('mojolicious');
33
    if ($config && $config->{intranet} && $config->{intranet}->{config}) {
34
        $self->config($config->{intranet}->{config});
35
    }
36
30
    push @{$self->plugins->namespaces}, 'Koha::App::Plugin';
37
    push @{$self->plugins->namespaces}, 'Koha::App::Plugin';
31
    push @{$self->static->paths}, $self->home->rel_file('koha-tmpl');
38
    push @{$self->static->paths}, $self->home->rel_file('koha-tmpl');
32
39
(-)a/Koha/App/Opac.pm (+7 lines)
Lines 24-32 use Mojo::Base 'Mojolicious'; Link Here
24
use Koha::Caches;
24
use Koha::Caches;
25
use Koha::Cache::Memory::Lite;
25
use Koha::Cache::Memory::Lite;
26
26
27
use C4::Context;
28
27
sub startup {
29
sub startup {
28
    my ($self) = @_;
30
    my ($self) = @_;
29
31
32
    my $config = C4::Context->config('mojolicious');
33
    if ($config && $config->{opac} && $config->{opac}->{config}) {
34
        $self->config($config->{opac}->{config});
35
    }
36
30
    push @{$self->plugins->namespaces}, 'Koha::App::Plugin';
37
    push @{$self->plugins->namespaces}, 'Koha::App::Plugin';
31
    push @{$self->static->paths}, $self->home->rel_file('koha-tmpl');
38
    push @{$self->static->paths}, $self->home->rel_file('koha-tmpl');
32
39
(-)a/etc/koha-conf.xml (-1 / +19 lines)
Lines 270-274 __PAZPAR2_TOGGLE_XML_POST__ Link Here
270
    <debug>__SMTP_DEBUG__</debug>
270
    <debug>__SMTP_DEBUG__</debug>
271
 </smtp_server>
271
 </smtp_server>
272
272
273
    <mojolicious>
274
        <intranet>
275
            <config>
276
                <!-- https://docs.mojolicious.org/Mojo/Server/Hypnotoad#SETTINGS -->
277
                <hypnotoad>
278
                    <listen>http://127.0.0.1:8080</listen>
279
                </hypnotoad>
280
            </config>
281
        </intranet>
282
        <opac>
283
            <config>
284
                <!-- https://docs.mojolicious.org/Mojo/Server/Hypnotoad#SETTINGS -->
285
                <hypnotoad>
286
                    <listen>http://127.0.0.1:8081</listen>
287
                </hypnotoad>
288
            </config>
289
        </opac>
290
    </mojolicious>
291
273
</config>
292
</config>
274
</yazgfs>
293
</yazgfs>
275
- 

Return to bug 26625