Merge branch 'main' of hectabit.org:HectaBit/HectaMail-website
This commit is contained in:
commit
c46d496987
12
README.md
12
README.md
|
@ -4,11 +4,15 @@ A frontend and registration service for the maddy mail server
|
||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
|
|
||||||
|
Install everything in requirements.txt
|
||||||
|
|
||||||
Copy config.ini.example to config.ini and edit accordingly
|
Copy config.ini.example to config.ini and edit accordingly
|
||||||
|
|
||||||
Use your web server to host everything in public, and run app.py with python.
|
Use your web server to host everything in public, and run app.py with python.
|
||||||
|
|
||||||
Reverse-proxy app.py to /register.
|
Reverse-proxy signup/signup.py to /register, and run as an a normal user with doas permissions for maddy
|
||||||
|
|
||||||
|
Reverse-proxy login/login.py to /login, and run as the maddy user to have r/w access to the db
|
||||||
|
|
||||||
## Dependencies
|
## Dependencies
|
||||||
|
|
||||||
|
@ -16,8 +20,4 @@ System
|
||||||
|
|
||||||
Any HTTP web server
|
Any HTTP web server
|
||||||
Python3
|
Python3
|
||||||
|
Pip
|
||||||
PIP
|
|
||||||
|
|
||||||
Flask
|
|
||||||
Waitress
|
|
||||||
|
|
|
@ -37,7 +37,7 @@ def verify_bcrypt(passphrase, hashed_password):
|
||||||
def index():
|
def index():
|
||||||
return render_template('index.html')
|
return render_template('index.html')
|
||||||
|
|
||||||
@app.route('/login', methods=['POST'])
|
@app.route('/api', methods=['POST'])
|
||||||
def login():
|
def login():
|
||||||
key_to_fetch = request.form['email']
|
key_to_fetch = request.form['email']
|
||||||
password_to_check = request.form['password']
|
password_to_check = request.form['password']
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<div class="headerbar">
|
<div class="headerbar">
|
||||||
<a href="/">HectaMail</a>
|
<a href="/">HectaMail</a>
|
||||||
<a href="/register">Sign up</a>
|
<a href="/register">Sign up</a>
|
||||||
<a class="main" href="/login">Login</a>
|
<a class="main" href="/login/api">Login</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<h1>Login to your Email Account</h1>
|
<h1>Login to your Email Account</h1>
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
flask
|
flask
|
||||||
waitress
|
waitress
|
||||||
captcha
|
captcha
|
||||||
|
bcrypt
|
||||||
|
|
Loading…
Reference in New Issue