An open API service indexing awesome lists of open source software.

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

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