bbalet / jorani

Leave and Overtime Management System
http://jorani.org/
GNU Affero General Public License v3.0
389 stars 276 forks source link

Error on first login v1.0.2 #392

Closed JohannesFleischer closed 1 year ago

JohannesFleischer commented 1 year ago

Similar to 309

After creating a new instance, the login button throws in Firefox and Chrome an error:

Firefox: gh_img

Chrome: grafik

Does not happen on my local machine (Ubuntu 22.04) with the same procedure

What is the version of Jorani?

v1.0.2

Expected behavior

Successful login

Actual behavior

Error on login click

Steps to reproduce the behavior

  1. Download the release on Debian 5.10.149-2 (2022-10-21) x86_64 GNU/Linux
  2. unzip
  3. run docker compose up -d
  4. access the GUI and try to log in
bbalet commented 1 year ago

workaround, setup a https secured connection with let's encrypt for example.

JohannesFleischer commented 1 year ago

That worked, but only partly Now chrome throws errors, because the application requests scripts, stylesheets etc via http but the connection is via https: grafik

This works for Firefox, but things like login seem to be via http as well

JohannesFleischer commented 1 year ago

Fixed it by adding

environment:
  - BASE_URL=https://domain.tld

to the docker-compose.yml