1
0
Fork 0

nginx proxy

main
root 2023-05-10 16:40:56 -06:00
parent 14c4621dc3
commit 287a12f6ce
1 changed files with 22 additions and 8 deletions

View File

@ -20,7 +20,7 @@ Install some dependencies from Debian repos:
```
apt update
apt install build-essential curl python3 python-is-python3 postgresql \
ffmpeg
ffmpeg nginx
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.
Set, like my example:
* `url: http://rs-calckey.jebba.moe/`
* `db: debian`
* `db: hunter3`
```
cp .config/example.yml .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
Unofficial project, not part of official Calckey software or