Merge branch 'master' of dickreckard/bibliotecha-manual into master
This commit is contained in:
commit
3a382e12f9
@ -508,7 +508,7 @@ And then make sure the following is in the
|
|||||||
```bash
|
```bash
|
||||||
server.error-handler-404 = "/bibliotecha/index.html"
|
server.error-handler-404 = "/bibliotecha/index.html"
|
||||||
$HTTP["host"] == "bibliotecha.library" {
|
$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
|
```bash
|
||||||
$ mkdir /opt/calibre-database
|
$ 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
|
### Configure the Captive Portal
|
||||||
@ -548,7 +548,7 @@ $ mkdir /var/www/bibliotecha
|
|||||||
And then we download the default page into location:
|
And then we download the default page into location:
|
||||||
|
|
||||||
```bash
|
```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
|
$ 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
|
```bash
|
||||||
$ mkdir /var/www/calibre-web
|
$ 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
|
$ 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
|
$ python3 -m venv .venv && .venv/bin/pip install -r requirements.txt
|
||||||
```
|
```
|
||||||
|
|
||||||
And finally configure the service to be run by Systemd. In the
|
And finally configure the service to be run by Systemd.
|
||||||
`/etc/systemd/system/cps.service` we need to add:
|
Create the file `/etc/systemd/system/cps.service` and add these lines to it:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
Description=Calibre-Web
|
Description=Calibre-Web
|
||||||
|
Loading…
Reference in New Issue
Block a user