Skip to content

Instantly share code, notes, and snippets.

@iaverin
iaverin / rest35.py
Last active August 9, 2024 13:43
Simple and functional REST server for Python (3.5) using no dependencies beyond the Python standard library. Ported from https://gist.github.com/tliron/8e9757180506f25e46d9
#!/usr/bin/env python
'''
Simple and functional REST server for Python (3.5) using no dependencies beyond the Python standard library.
Ported from original lib for Python 2.7 by Liron (tliron @ github.com) https://gist.github.com/tliron/8e9757180506f25e46d9
Features:
* Map URI patterns using regular expressions
* Map any/all the HTTP VERBS (GET, PUT, DELETE, POST)
* All responses and payloads are converted to/from JSON for you
* Easily serve static files: a URI can be mapped to a file, in which case just GET is supported
"""
Сервис подгтовки отчета KPI по отделениям банка
Входящие агрументы:
- дата на которую нужно сформировать отчет
- список id отделений, день
Результат:
- данные по отношению объемы выданных кредитов к объему выданных ипотек за период
@iaverin
iaverin / docker-compose.yaml
Last active July 28, 2026 13:59
Coolify second server reverse proxy
version: '3.8'
services:
nginx-proxy:
image: nginx:alpine
container_name: nginx-subdomain-forwarder
environment:
# 1. Custom variables to set in Coolify
- TARGET_DOMAIN=subdomain.domain.com
- SECOND_SERVER_IP=192.168.1.100 # Укажите ваш IP