Compare commits
4 Commits
62586de020
...
f77ade44d5
| Author | SHA1 | Date | |
|---|---|---|---|
| f77ade44d5 | |||
| c5d6916fa6 | |||
| 1b2bb83eeb | |||
| 2884cd91a8 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,2 +1,3 @@
|
|||||||
.env
|
.env
|
||||||
**/__pycache__
|
**/__pycache__
|
||||||
|
**/*.pem
|
||||||
|
|||||||
14
README.md
14
README.md
@@ -28,3 +28,17 @@ Copy the `app.py` file to your desired location, and run it using Python:
|
|||||||
```bash
|
```bash
|
||||||
flask run app.py
|
flask run app.py
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Self-Signed SSL Certificate (Optional)
|
||||||
|
|
||||||
|
To run the Flask app with HTTPS, you can create a self-signed SSL certificate:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes -subj "/CN=localhost" -addext "subjectAltName=DNS:localhost"
|
||||||
|
```
|
||||||
|
|
||||||
|
Then run the Flask app with SSL context:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
flask run --cert=cert.pem --key=key.pem
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user