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
version: "3.8" | |
services: | |
traefik: | |
image: traefik:v2.4.9 | |
deploy: | |
replicas: 1 | |
placement: | |
constraints: [node.role == manager] | |
ports: |
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
from __future__ import annotations | |
from django.conf import settings | |
from django.utils import timezone | |
from rest_framework import throttling | |
from django_redis import get_redis_connection | |
from django_redis.client import DefaultClient | |
from ipware import get_client_ip |