https://github.com/bluebrown/flaskginx
example project to show how to serve statics with nginx while dynamic content from flask
https://github.com/bluebrown/flaskginx
flask nginx python serve-statics
Last synced: 2 months ago
JSON representation
example project to show how to serve statics with nginx while dynamic content from flask
- Host: GitHub
- URL: https://github.com/bluebrown/flaskginx
- Owner: bluebrown
- Created: 2021-04-06T23:16:35.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-04-06T23:44:03.000Z (about 5 years ago)
- Last Synced: 2025-02-07T11:53:34.709Z (over 1 year ago)
- Topics: flask, nginx, python, serve-statics
- Language: CSS
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Flask Nginx Example
This is an example that shows how to serve static files with nginx and dynamic content with flask.
For simplicity both backends live in docker container. There is a make file to help spin up everything.
Run both containers
```
make clean && make install && make run
```
Visit the page at http://127.0.0.1:2000 or render your *personal* name at http://127.0.0.1:2000/hello/yourname