zdavatz / amiko-web

AmiKo auf dem Web
https://amiko.oddb.org
GNU General Public License v3.0
1 stars 2 forks source link

Start up error after PR #58 #59

Closed zdavatz closed 5 months ago

zdavatz commented 5 months ago
  1. After pulling #58
  2. and adding this export JAVA_OPTS="-Dfeature.prescriptions=true"
  3. I get
    @4000000066192b601dd663bc Loading all de interactions... found 15916 entries
    @4000000066192b610229b7f4 Loading all fr interactions... found 15916 entries
    @4000000066192b61205ea0f4 OK
    @4000000066192b640069f30c [info] p.a.h.HttpErrorHandlerExceptions - Registering exception handler: guice-provision-exception-handler
    @4000000066192b6435e2da6c [info] p.a.d.DefaultDBApi - Database [french] initialized
    @4000000066192b64363a7fec [info] p.a.d.HikariCPConnectionPool - Creating Pool for datasource 'french'
    @4000000066192b6439d8307c [info] p.a.d.DefaultDBApi - Database [german] initialized
    @4000000066192b6439d8384c [info] p.a.d.HikariCPConnectionPool - Creating Pool for datasource 'german'
    @4000000066192b6439f885d4 [info] p.a.d.DefaultDBApi - Database [frequency_de] initialized
    @4000000066192b6439f889bc [info] p.a.d.HikariCPConnectionPool - Creating Pool for datasource 'frequency_de'
    @4000000066192b643a132e0c [info] p.a.d.DefaultDBApi - Database [default] initialized
    @4000000066192b643a1331f4 [info] p.a.d.HikariCPConnectionPool - Creating Pool for datasource 'default'
    @4000000066192b643a2bf9b4 [info] p.a.d.DefaultDBApi - Database [frequency_fr] initialized
    @4000000066192b643a2bfd9c [info] p.a.d.HikariCPConnectionPool - Creating Pool for datasource 'frequency_fr'
zdavatz commented 5 months ago
  1. I can start like this: /var/www/amiko.oddb.org/bin/amikoweb -Dplay.http.secret.key='asdöflkasdfölkadsfölkj...
  2. But then I get:
  3. Bad Request
    For request 'GET /' [Host not allowed: amiko.oddb.org]
zdavatz commented 5 months ago

ok, das scheint zu fehlen im Application.conf:

  hosts {
    # Allow requests to example.com, its subdomains, and localhost:9000.
    allowed = ["amiko.oddb.org", "localhost:9000"]
zdavatz commented 5 months ago

Application.conf von yopenedi sieht so aus: https://github.com/zdavatz/yopenedi/blob/master/java/server/conf/application.conf

zdavatz commented 5 months ago

Deamontools was configured wrong, this works:

#!/bin/sh
export JAVA_OPTS="-Dplay.http.secret.key=****************************************** -Dfeature.prescriptions=true"
exec /var/www/amiko.oddb.org/bin/amikoweb