nginx proxy
parent
14c4621dc3
commit
287a12f6ce
30
README.md
30
README.md
|
@ -20,7 +20,7 @@ Install some dependencies from Debian repos:
|
||||||
```
|
```
|
||||||
apt update
|
apt update
|
||||||
apt install build-essential curl python3 python-is-python3 postgresql \
|
apt install build-essential curl python3 python-is-python3 postgresql \
|
||||||
ffmpeg
|
ffmpeg nginx
|
||||||
|
|
||||||
apt install -t bullseye-backports redis
|
apt install -t bullseye-backports redis
|
||||||
```
|
```
|
||||||
|
@ -85,20 +85,34 @@ psql postgres -c "create database calckey with encoding = 'UTF8';"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
# Configure
|
## nginx
|
||||||
|
Setup web proxy.
|
||||||
|
|
||||||
|
```
|
||||||
|
sudo cp ./calckey.nginx.conf /etc/nginx/sites-available/
|
||||||
|
cd /etc/nginx/sites-available/
|
||||||
|
sudo $EDITOR calckey.nginx.conf
|
||||||
|
cd ../sites-enabled/
|
||||||
|
sudo ln -s ../sites-available/calckey.nginx.conf .
|
||||||
|
sudo nginx -t
|
||||||
|
sudo systemctl restart nginx
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
# Configure Calckey
|
||||||
Configure thusly.
|
Configure thusly.
|
||||||
|
|
||||||
Set, like my example:
|
|
||||||
|
|
||||||
* `url: http://rs-calckey.jebba.moe/`
|
|
||||||
* `db: debian`
|
|
||||||
* `db: hunter3`
|
|
||||||
|
|
||||||
```
|
```
|
||||||
cp .config/example.yml .config/default.yml
|
cp .config/example.yml .config/default.yml
|
||||||
$EDITOR .config/default.yml
|
$EDITOR .config/default.yml
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Set, like my example:
|
||||||
|
|
||||||
|
* `url: https://rs-calckey.jebba.moe/`
|
||||||
|
* `db user: debian` # and other needed db settings
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Copyright
|
# Copyright
|
||||||
Unofficial project, not part of official Calckey software or
|
Unofficial project, not part of official Calckey software or
|
||||||
|
|
Loading…
Reference in New Issue