change stack deployment files and rate limit

This commit is contained in:
Alexandre Teles 2022-09-09 17:33:27 -03:00
parent bdbf99a4f7
commit 548f3efbb1
5 changed files with 13 additions and 9 deletions

View File

@ -42,7 +42,7 @@ port = 8000
[slowapi]
limit = "15/minute"
limit = "1000/minute"
[cache]
expire = 60

View File

@ -16,10 +16,12 @@ services:
container_name: revanced-releases-api
image: alexandreteles/revanced-releases-api:latest
environment:
- GITHUB_TOKEN=YOUR_GITHUB_TOKEN
- REDIS_URL=revanced-releases-api-redis
- REDIS_PORT=6379
env_file:
- .env
- UVICORN_HOST=0.0.0.0
- UVICORN_PORT=8000
- UVICORN_LOG_LEVEL=debug
ports:
- 127.0.0.1:7934:8000
networks:

6
poetry.lock generated
View File

@ -63,7 +63,7 @@ tests_no_zope = ["cloudpickle", "coverage[toml] (>=5.0.2)", "hypothesis", "mypy"
[[package]]
name = "certifi"
version = "2022.6.15"
version = "2022.6.15.1"
description = "Python package for providing Mozilla's CA Bundle."
category = "main"
optional = false
@ -624,8 +624,8 @@ attrs = [
{file = "attrs-21.4.0.tar.gz", hash = "sha256:626ba8234211db98e869df76230a137c4c40a12d72445c45d5f5b716f076e2fd"},
]
certifi = [
{file = "certifi-2022.6.15-py3-none-any.whl", hash = "sha256:fe86415d55e84719d75f8b69414f6438ac3547d2078ab91b67e779ef69378412"},
{file = "certifi-2022.6.15.tar.gz", hash = "sha256:84c85a9078b11105f04f3036a9482ae10e4621616db313fe045dd24743a0820d"},
{file = "certifi-2022.6.15.1-py3-none-any.whl", hash = "sha256:43dadad18a7f168740e66944e4fa82c6611848ff9056ad910f8f7a3e46ab89e0"},
{file = "certifi-2022.6.15.1.tar.gz", hash = "sha256:cffdcd380919da6137f76633531a5817e3a9f268575c128249fb637e4f9e73fb"},
]
click = [
{file = "click-8.1.3-py3-none-any.whl", hash = "sha256:bb4d8133cb15a609f44e8213d9b391b0809795062913b383c62be0ee95b1db48"},

View File

@ -18,10 +18,12 @@ services:
container_name: revanced-releases-api
image: alexandreteles/revanced-releases-api:latest
environment:
- GITHUB_TOKEN=YOUR_GITHUB_TOKEN
- REDIS_URL=revanced-releases-api-redis
- REDIS_PORT=6379
env_file:
- stack.env
- UVICORN_HOST=0.0.0.0
- UVICORN_PORT=8000
- UVICORN_LOG_LEVEL=debug
ports:
- 127.0.0.1:7934:8000
networks:

View File

@ -3,7 +3,7 @@ aiorwlock==1.3.0; python_version >= "3.7" and python_version < "4.0" and python_
anyio==3.6.1; python_version >= "3.7" and python_version < "4.0" and python_full_version >= "3.6.2"
async-timeout==4.0.2; python_version >= "3.6"
attrs==21.4.0; python_version >= "3.7" and python_full_version < "3.0.0" and python_version < "4.0" or python_version >= "3.7" and python_version < "4.0" and python_full_version >= "3.5.0"
certifi==2022.6.15; python_version >= "3.7" and python_version < "4.0"
certifi==2022.6.15.1; python_version >= "3.7" and python_version < "4.0"
click==8.1.3; python_version >= "3.7" and python_version < "4.0"
colorama==0.4.5; python_version >= "3.7" and python_full_version < "3.0.0" and sys_platform == "win32" and python_version < "4.0" and platform_system == "Windows" or sys_platform == "win32" and python_version >= "3.7" and python_full_version >= "3.5.0" and python_version < "4.0" and platform_system == "Windows"
deprecated==1.2.13; python_version >= "3.6" and python_full_version < "3.0.0" or python_full_version >= "3.4.0" and python_version >= "3.6"