BookStackApp / BookStack

A platform to create documentation/wiki content built with PHP & Laravel
https://www.bookstackapp.com/
MIT License
15.28k stars 1.9k forks source link

Issues with the ubuntu 16.04 installer script #655

Closed spacekookie closed 6 years ago

spacekookie commented 6 years ago

I'm having some issues installing bookstack on Ubuntu 16.04. I should mention that it is an Ubuntu 16.04 lxc container, running an nginx on the host doing ssl termination and then proxy-ing everything into the container.

For Bug Reports

Current Behavior

After the setup two errors occur

  1. Parts of the login page (https://wiki.spacekookie.de), namely the logo, are sent over http which makes browsers paranoid
  2. The user (admin@admin.com, password) combination doesn't let me log-into my wiki to change settings either

According to the setup script the installation was however successful. So...not really sure what to do here. I don't really think this has anything to do with running Bookstack inside a container but I thought I'd just mention it.

Steps to Reproduce
  1. Inside a fresh lxc Ubuntu 16.04 container download the installer script
  2. Run the installer script
  3. Go to the installed website
spacekookie commented 6 years ago

What do you mean by that? What site? In what way?

ssddanbrown commented 6 years ago

Hi @spacekookie, Sorry to hear you are having issues. Just tested it and I think issue 2 is directly related to issue 1. The login request simply redirects to the https versions of the page (But does not submit the data). Once issue 1 is sorted issue 2 should also be fixed.

In regards to issue 1, This will be due to proxies and how the framework responds to proxies. To start off, Try setting APP_URL=https://wiki.spacekookie.de in your .env file as that should force the base url of all urls generated by the system.

Let me know how that goes.

spacekookie commented 6 years ago

@ssddanbrown Awesome, yes thank you! I was searching for a file like that but was looking at the .php files for configuration (not a PHP dev 😝). This works now, I can log-in and Firefox is happy too.

Thank you for the quick support and for writing such a sexy looking piece of wiki software ❤️

ssddanbrown commented 6 years ago

Awesome, Happy to hear that sorted it