mirror of
https://github.com/Lynnesbian/FediBooks/
synced 2024-11-26 00:58:59 +00:00
Compare commits
No commits in common. "d9447fcec7c8cde81186a59900175299f55e77c3" and "001dbadf9e3b63be0d35cef869e2106de6b8940d" have entirely different histories.
d9447fcec7
...
001dbadf9e
33 changed files with 26 additions and 4 deletions
6
.dockerignore
Normal file
6
.dockerignore
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
__pycache__
|
||||||
|
config.json
|
||||||
|
planning.txt
|
||||||
|
README.md
|
||||||
|
.git
|
||||||
|
.vscode
|
4
Dockerfile
Normal file
4
Dockerfile
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
FROM python:3.7-slim-buster
|
||||||
|
WORKDIR /fedibooks
|
||||||
|
COPY . fedibooks
|
||||||
|
RUN pip install -r requirements.txt
|
15
docker-compose.yml
Normal file
15
docker-compose.yml
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
fedibooks:
|
||||||
|
build: .
|
||||||
|
links:
|
||||||
|
- db
|
||||||
|
ports:
|
||||||
|
5000:5000
|
||||||
|
db:
|
||||||
|
image: mariadb/server:10.4
|
||||||
|
environment:
|
||||||
|
MARIADB_ROOT_PASSWORD: root
|
||||||
|
MARIADB_DATABASE: fedibooks
|
||||||
|
MARIADB_USER: fedibooks
|
||||||
|
MARIADB_PASSWORD: fedibooks
|
2
run.sh
2
run.sh
|
@ -1,3 +1 @@
|
||||||
cd app
|
|
||||||
env FLASK_APP=webui.py flask run
|
env FLASK_APP=webui.py flask run
|
||||||
cd ..
|
|
||||||
|
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 136 KiB After Width: | Height: | Size: 136 KiB |
|
@ -55,7 +55,6 @@ body {
|
||||||
width: 100px;
|
width: 100px;
|
||||||
height: 100px;
|
height: 100px;
|
||||||
background: center/contain url("/img/bot_generic.png");
|
background: center/contain url("/img/bot_generic.png");
|
||||||
background-repeat: no-repeat;
|
|
||||||
}
|
}
|
||||||
.panel-icon.large {
|
.panel-icon.large {
|
||||||
width: 150px;
|
width: 150px;
|
|
@ -483,7 +483,7 @@ def bot_create():
|
||||||
secret = privated['auth']
|
secret = privated['auth']
|
||||||
client.push_subscription_set("{}/push/{}".format(cfg['base_uri'], handle), publicd, mention_events = True)
|
client.push_subscription_set("{}/push/{}".format(cfg['base_uri'], handle), publicd, mention_events = True)
|
||||||
|
|
||||||
c.execute("INSERT INTO `bots` (handle, user_id, credentials_id, push_public_key, push_private_key, push_secret, instance_type) VALUES (%s, %s, %s, %s, %s, %s, %s)", (handle, session['user_id'], credentials_id, public, private, secret, session['instance_type']))
|
c.execute("INSERT INTO `bots` (handle, user_id, credentials_id, push_public_key, push_private_key, push_secret, instance_type) VALUES (%s, %s, %s, %s, %s, %s)", (handle, session['user_id'], credentials_id, public, private, secret, session['instance_type']))
|
||||||
mysql.connection.commit()
|
mysql.connection.commit()
|
||||||
c.close()
|
c.close()
|
||||||
|
|
Loading…
Reference in a new issue