aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2021-06-05 17:32:50 +0530
committerNavan Chauhan <navanchauhan@gmail.com>2021-06-05 17:32:50 +0530
commit307611a5d4451565cb746521383edbf1f63f2f59 (patch)
treeb1086425fffe1bf73dd28ac10f4ef92d015ebb5e /Makefile
parentab31be5ab267901cc531f0d5003202c36d19683f (diff)
added https for local development
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 87d5b6b..7c0a3bb 100644
--- a/Makefile
+++ b/Makefile
@@ -19,4 +19,15 @@ db:
.PHONY: dev
dev:
cd app && ln -sf config_dev.py config.py
- FLASK_APP=app python -m flask run --reload --debugger --extra-files ./app/templates/base.html:./app/templates/contact.html:./app/templates/index.html \ No newline at end of file
+ FLASK_APP=app python -m flask run --reload --debugger --extra-files ./app/templates/base.html:./app/templates/contact.html:./app/templates/index.html
+
+## Create Self-Signed SSL Certificate
+.PHONY: cert-create
+cert-create:
+ openssl req -x509 -newkey rsa:4096 -nodes -out cert.pem -keyout key.pem -days 365
+
+## Dev server with SSL
+.PHONY: dev-ssl
+dev-ssl:
+ cd app && ln -sf config_dev.py config.py
+ FLASK_APP=app python -m flask run --reload --debugger --cert=cert.pem --key=key.pem \ No newline at end of file