|
|
@ -508,7 +508,7 @@ And then make sure the following is in the |
|
|
|
```bash |
|
|
|
server.error-handler-404 = "/bibliotecha/index.html" |
|
|
|
$HTTP["host"] == "bibliotecha.library" { |
|
|
|
proxy.server = ("" => (("host" => "127.0.0.1", "port" => "8083")))' |
|
|
|
proxy.server = ("" => (("host" => "127.0.0.1", "port" => "8083"))) |
|
|
|
} |
|
|
|
``` |
|
|
|
|
|
|
@ -533,7 +533,7 @@ We should run the following: |
|
|
|
|
|
|
|
```bash |
|
|
|
$ mkdir /opt/calibre-database |
|
|
|
$ /usr/bin/calibredb restore_database --really-do-it /opt/calibre-database |
|
|
|
$ /usr/bin/calibredb restore_database --really-do-it --with-library /opt/calibre-database |
|
|
|
``` |
|
|
|
|
|
|
|
### Configure the Captive Portal |
|
|
@ -548,7 +548,7 @@ $ mkdir /var/www/bibliotecha |
|
|
|
And then we download the default page into location: |
|
|
|
|
|
|
|
```bash |
|
|
|
$ apt install -y wget |
|
|
|
$ apt install -y wget git python3-venv |
|
|
|
$ wget https://git.vvvvvvaria.org/varia/bibliotecha-captive-portal/raw/branch/master/index.html -O /var/www/bibliotecha/index.html |
|
|
|
``` |
|
|
|
|
|
|
@ -564,7 +564,7 @@ We now setup the Calibre-web installation. We first get a copy of the source wit |
|
|
|
|
|
|
|
```bash |
|
|
|
$ mkdir /var/www/calibre-web |
|
|
|
$ git clone https://github.com/janeczku/calibre-web /var/ww/calibre-web |
|
|
|
$ git clone https://github.com/janeczku/calibre-web /var/www/calibre-web |
|
|
|
$ cd /var/www/calibre-web |
|
|
|
``` |
|
|
|
|
|
|
@ -574,8 +574,8 @@ We then need to install the Python dependencies with: |
|
|
|
$ python3 -m venv .venv && .venv/bin/pip install -r requirements.txt |
|
|
|
``` |
|
|
|
|
|
|
|
And finally configure the service to be run by Systemd. In the |
|
|
|
`/etc/systemd/system/cps.service` we need to add: |
|
|
|
And finally configure the service to be run by Systemd. |
|
|
|
Create the file `/etc/systemd/system/cps.service` and add these lines to it: |
|
|
|
|
|
|
|
```bash |
|
|
|
Description=Calibre-Web |
|
|
|