mirror of https://github.com/TriliumNext/Notes
configurable port plus support for SSL
parent
f80f073874
commit
3c924afbca
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
openssl genrsa -des3 -out cert.key 2048
|
||||||
|
|
||||||
|
openssl req -new -key cert.key -out cert.csr
|
||||||
|
|
||||||
|
# Remove passphrase from key
|
||||||
|
cp cert.key cert.key.org
|
||||||
|
|
||||||
|
openssl rsa -in cert.key.org -out cert.key
|
||||||
|
|
||||||
|
# Generate self signed certificate
|
||||||
|
openssl x509 -req -days 730 -in cert.csr -signkey cert.key -out cert.crt
|
||||||
|
|
||||||
|
rm cert.key.org
|
||||||
|
rm cert.csr
|
||||||
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
export FLASK_DEBUG=0
|
||||||
|
export FLASK_APP=src/app.py
|
||||||
|
|
||||||
|
flask run
|
||||||
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
export FLASK_DEBUG=1
|
export FLASK_DEBUG=0
|
||||||
export FLASK_APP=src/app.py
|
export FLASK_APP=src/app.py
|
||||||
|
|
||||||
flask run
|
flask run
|
||||||
Loading…
Reference in New Issue