Compare commits

...

4 Commits

4 changed files with 20 additions and 5 deletions

1
.gitignore vendored
View File

@@ -1,2 +1,3 @@
.env
**/__pycache__
**/*.pem

View File

@@ -28,3 +28,17 @@ Copy the `app.py` file to your desired location, and run it using Python:
```bash
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
```