-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
100 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Agreper - minimal, no-JS forum software | ||
|
||
Agreper is a forum board with a focus on being easy to set up and manage. | ||
|
||
## Features | ||
|
||
## Install & running | ||
|
||
### Linux | ||
|
||
First clone or [download the latest release](todo). | ||
|
||
Then setup with: | ||
|
||
``` | ||
make | ||
./init_sqlite.sh forum.db | ||
``` | ||
|
||
Lastly, run with: | ||
|
||
``` | ||
./run_sqlite.sh forum.db forum.pid | ||
``` | ||
|
||
You will need a proxy such as nginx to access the forum on the public internet. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
argon2-cffi==21.3.0 | ||
argon2-cffi-bindings==21.2.0 | ||
cffi==1.15.1 | ||
click==8.1.3 | ||
Flask==2.2.2 | ||
gunicorn==20.1.0 | ||
importlib-metadata==5.0.0 | ||
itsdangerous==2.1.2 | ||
Jinja2==3.1.2 | ||
MarkupSafe==2.1.1 | ||
passlib==1.7.4 | ||
pycparser==2.21 | ||
Werkzeug==2.2.2 | ||
zipp==3.8.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,27 @@ | ||
#!/usr/bin/env bash | ||
|
||
# This script is intended for dev environments only. | ||
touch main.py | ||
set -e | ||
|
||
if [ -z "$SERVER" ] | ||
then | ||
echo "SERVER is not set" >&2 | ||
exit 1 | ||
fi | ||
|
||
case "$SERVER" in | ||
dev) | ||
touch main.py | ||
;; | ||
gunicorn) | ||
if [ -z "$PID" ] | ||
then | ||
echo "PID is not set" >&2 | ||
exit 1 | ||
fi | ||
kill -hup $(cat "$PID") | ||
;; | ||
*) | ||
echo "Unsupported $SERVER" >&2 | ||
exit 1 | ||
;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
if [ ! -e venv ] | ||
then | ||
echo "venv not found, did you run make?" >&2 | ||
exit 1 | ||
fi | ||
|
||
if [ $# != 2 ] | ||
then | ||
echo "Usage: $0 <file.db> <pid file>" >&2 | ||
exit 1 | ||
fi | ||
|
||
export DB="$1" | ||
export SERVER=gunicorn | ||
export PID="$2" | ||
exec gunicorn -w 4 'main:app' --pid="$PID" -b 0.0.0.0:8000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters