Skip to content

SSL breaks user database #400

@chasegolem

Description

@chasegolem

I'm attempting to get Libki Server to use SSL. It works just fine as is and SSL does work, but when it's on I cannot log into the web portal. As said in the guide, I changed my Apache configuration to use X-Request-Base to my domain. My Apache configuration is below. Is there anything else that needs to be done that I'm missing?

<VirtualHost *:443>
    # Uncomment ServerName and edit server.libki.org to your domain name.
    # If uncommented, all http calls to this server will be directed to the libki server.
    #
    #ServerName server.libki.org

    # Set a value for the instance name if you are going to go multi-tenant
    RequestHeader set libki-instance "libki"
    RequestHeader set X-Request-Base "https://[server].[domain]"

    DocumentRoot /home/libki/libki-server
    <Proxy *>
        Order deny,allow
        Allow from allow
    </Proxy>
    ProxyPass        / http://localhost:3000/ retry=0
    ProxyPassReverse / http://localhost:3000/ retry=0

    SSLEngine on
    SSLCertificateFile /etc/apache2/ssl/[certificate].crt
    SSLCertificateKeyFile /etc/apache2/ssl/[key].key
</VirtualHost>

These are the only entries in libki_server.log:

starting new worker 41058
Use of uninitialized value $dsn in substitution (s///) at /home/libki/libki-server/lib/Libki.pm line 155.
Use of uninitialized value $user in substitution (s///) at /home/libki/libki-server/lib/Libki.pm line 156.
Use of uninitialized value $password in substitution (s///) at /home/libki/libki-server/lib/Libki.pm line 157.

MySQL logs don't show anything of use, nor does the libki.log file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions