diff options
author | Filipp Lepalaan <filipp@mac.com> | 2020-11-01 20:01:35 +0200 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2020-11-01 20:01:35 +0200 |
commit | 494dedf17035c1699c35cd2559f15a64eaa7eff3 (patch) | |
tree | 376e1736e696074e6ddb0cde7d9c4345b895da25 /templates | |
download | hello-494dedf17035c1699c35cd2559f15a64eaa7eff3.tar.gz hello-494dedf17035c1699c35cd2559f15a64eaa7eff3.tar.bz2 hello-494dedf17035c1699c35cd2559f15a64eaa7eff3.zip |
Initial commit
Diffstat (limited to 'templates')
-rw-r--r-- | templates/fastapi.rst | 15 | ||||
-rw-r--r-- | templates/nginx.rst | 24 |
2 files changed, 39 insertions, 0 deletions
diff --git a/templates/fastapi.rst b/templates/fastapi.rst new file mode 100644 index 0000000..8d80f55 --- /dev/null +++ b/templates/fastapi.rst @@ -0,0 +1,15 @@ +#!/usr/bin/env python + +import subprocess + +import fastapi + +app = fastapi.FastAPI() + + +def main(): + args = ["uvicorn", "main:app", "--reload"] + subprocess.call(args) + +if __name__ == '__main__': + main() diff --git a/templates/nginx.rst b/templates/nginx.rst new file mode 100644 index 0000000..1fd314d --- /dev/null +++ b/templates/nginx.rst @@ -0,0 +1,24 @@ +worker_processes 1; + +events { + worker_connections 1024; +} + + +http { + include mime.types; + default_type application/octet-stream; + + sendfile on; + keepalive_timeout 65; + + server { + listen 8080; + server_name localhost; + + location / { + root html; + index index.html index.htm; + } + } +} |