-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ubuntu
committed
Apr 2, 2021
1 parent
b2240dc
commit 7ab0480
Showing
647 changed files
with
25 additions
and
103,232 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
To set up a production WSGI server: https://towardsdatascience.com/deploying-flask-with-gunicorn-3-9eaacd0f6eea | ||
Application Server vs. Web Server | ||
Seems that an application server processes dynamic content, and a web server serves up static content. This can be done very quickly since the web server is a worker model. | ||
If you want authentication on the static files -> https://docs.nginx.com/nginx/admin-guide/security-controls/configuring-subrequest-authentication/ | ||
|
||
Great Read on setting up flask/nginx on EC2 -> https://medium.com/@varunchitale/a-simple-python-api-using-flask-with-nginx-setup-on-aws-ec2-4a380ceaf006 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
#!/home/phillip/Documents/Personal_Projects/secure-python-flask-api/env/bin/python3 | ||
|
||
#!/home/ubuntu/secure-python-flask-api/env/bin/python3 | ||
# -*- coding: utf-8 -*- | ||
import re | ||
import sys | ||
|
||
from setuptools.command.easy_install import main | ||
|
||
if __name__ == '__main__': | ||
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) | ||
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) | ||
sys.exit(main()) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
#!/home/phillip/Documents/Personal_Projects/secure-python-flask-api/env/bin/python3 | ||
|
||
#!/home/ubuntu/secure-python-flask-api/env/bin/python | ||
# -*- coding: utf-8 -*- | ||
import re | ||
import sys | ||
|
||
from flask.cli import main | ||
|
||
if __name__ == '__main__': | ||
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) | ||
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) | ||
sys.exit(main()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
#!/home/phillip/Documents/Personal_Projects/secure-python-flask-api/env/bin/python3 | ||
|
||
#!/home/ubuntu/secure-python-flask-api/env/bin/python3 | ||
# -*- coding: utf-8 -*- | ||
import re | ||
import sys | ||
|
||
from pip import main | ||
|
||
from pip._internal.cli.main import main | ||
if __name__ == '__main__': | ||
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) | ||
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) | ||
sys.exit(main()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
#!/home/phillip/Documents/Personal_Projects/secure-python-flask-api/env/bin/python3 | ||
|
||
#!/home/ubuntu/secure-python-flask-api/env/bin/python3 | ||
# -*- coding: utf-8 -*- | ||
import re | ||
import sys | ||
|
||
from pip import main | ||
|
||
from pip._internal.cli.main import main | ||
if __name__ == '__main__': | ||
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) | ||
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) | ||
sys.exit(main()) |
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
env/lib/python3.6/site-packages/Flask-1.1.2.dist-info/INSTALLER
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
env/lib/python3.6/site-packages/Flask-1.1.2.dist-info/LICENSE.rst
This file was deleted.
Oops, something went wrong.
137 changes: 0 additions & 137 deletions
137
env/lib/python3.6/site-packages/Flask-1.1.2.dist-info/METADATA
This file was deleted.
Oops, something went wrong.
48 changes: 0 additions & 48 deletions
48
env/lib/python3.6/site-packages/Flask-1.1.2.dist-info/RECORD
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
env/lib/python3.6/site-packages/Flask-1.1.2.dist-info/entry_points.txt
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
env/lib/python3.6/site-packages/Flask-1.1.2.dist-info/top_level.txt
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
env/lib/python3.6/site-packages/Jinja2-2.11.3.dist-info/INSTALLER
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.