diff --git a/20191130/20191130.md b/20191130/20191130.md index 7ed27fb..7d248a7 100644 --- a/20191130/20191130.md +++ b/20191130/20191130.md @@ -1,4 +1,4 @@ -# 20191120 +# 20191130 ![js](https://img.shields.io/badge/language-js-orange.svg) diff --git a/20191201/20191201.md b/20191201/20191201.md new file mode 100644 index 0000000..15b173b --- /dev/null +++ b/20191201/20191201.md @@ -0,0 +1,4 @@ +# 20191201 + +![js](https://img.shields.io/badge/language-js-orange.svg) + diff --git a/20191201/retroSnaker.html b/20191201/retroSnaker.html new file mode 100644 index 0000000..30b3fc0 --- /dev/null +++ b/20191201/retroSnaker.html @@ -0,0 +1,147 @@ + + + + + + + + Document + + + + +
+ +
+ + + + + + + diff --git a/Miscellaneous/flask.md b/Miscellaneous/flask.md index 7c5d476..9cdbaed 100644 --- a/Miscellaneous/flask.md +++ b/Miscellaneous/flask.md @@ -42,13 +42,13 @@ 设置全局变量 -`export FLASK_APP=qrcode.py` +`export FLASK_APP=app.py` `export FLASK_ENV=development` 启动 -`flask run --host=0.0.0.0` +`flask run --host=0.0.0.0 -p 2000` 在虚拟环境下安装gunicorn diff --git a/Miscellaneous/nginx.conf b/Miscellaneous/nginx.conf index 8e2c692..fb7520b 100644 --- a/Miscellaneous/nginx.conf +++ b/Miscellaneous/nginx.conf @@ -28,6 +28,10 @@ server { try_files $uri $uri/ /index.html; } + location /api/photo/show/ { + alias /data/yiban/backend/upload/; + } + location /api { proxy_pass http://127.0.0.1:8000; } @@ -58,6 +62,10 @@ server { try_files $uri $uri/ /index.html; } + location /api/photo/show/ { + alias /data/yiban/backend/upload/; + } + location /api { proxy_pass http://127.0.0.1:8000; }