может ты это дамп только что сделал и он тупо из кеша выгрузился (но создавать такой дамп на медленном диске долго, ты бы сразу заметил)?
max_connections = 100
root@pc:/home/tester#time dd if=/media/tester/b0bb1639-f92d-4ee2-9ffe-9780109c9c0b/dump/dump.sql 2922+1 records in
2922+1 records out
3064820003 bytes (3,1 GB, 2,9 GiB) copied, 0,589602 s, 5,2 GB/s
real 0m0,592s
user 0m0,004s
sys 0m0,586s
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log notice;
pid /var/run/nginx.pid;
events {
worker_connections 10240;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
#gzip on;
include /etc/nginx/conf.d/*.conf;
}
daemon off;
root@18:/etc/nginx# cat /etc/nginx/conf.d/changes.conf
client_max_body 2G;
root@184f97f73968:/etc/nginx# ls -la /etc/nginx/conf.d/
total 28
drwxr-xr-x 1 root root 4096 Aug 19 21:47 .
drwxr-xr-x 1 root root 4096 Aug 19 18:31 ..
-rw-r--r-- 1 root root 20 Aug 19 21:46 changes.conf
-rw-r--r-- 1 root root 9608 Aug 19 21:47 default.conf
proxy:
container_name: nginx-proxy
restart: always
image: jwilder/nginx-proxy
ports:
- 80:80
- 443:443
volumes:
- certs:/etc/nginx/certs
- vhost.d:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- /var/run/docker.sock:/tmp/docker.sock
- ./changes_nginx.conf:/etc/nginx/conf.d/changes.conf
environment:
- DEFAULT_HOST=sire.ru
networks:
- main_network
root@vps293553:~/docker-compose# cat changes_nginx.conf
client_max_body 2G;
nginx-proxy | nginx.1 | nginx: [emerg] unknown directive "client_max_body" in /etc/nginx/conf.d/changes.conf:1
nginx-proxy | forego | starting nginx.1 on port 2818700
nginx-proxy | nginx.1 | 2021/08/19 21:52:41 [emerg] 28216#28216: unknown directive "client_max_body" in /etc/nginx/conf.d/changes.conf:1
nginx-proxy | nginx.1 | nginx: [emerg] unknown directive "client_max_body" in /etc/nginx/conf.d/changes.conf:1
nginx-proxy | forego | starting nginx.1 on port 2818800
nginx-proxy | nginx.1 | 2021/08/19 21:52:41 [emerg] 28217#28217: unknown directive "client_max_body" in /etc/nginx/conf.d/changes.conf:1
nginx-proxy | nginx.1 | nginx: [emerg] unknown directive "client_max_body" in /etc/nginx/conf.d/changes.conf:1
nginx-proxy | forego | starting nginx.1 on port 2818900
nginx-proxy | nginx.1 | 2021/08/19 21:52:41 [emerg] 28218#28218: unknown directive "client_max_body" in /etc/ng
proxy:
container_name: nginx-proxy
restart: always
image: jwilder/nginx-proxy
ports:
- 80:80
- 443:443
volumes:
- certs:/etc/nginx/certs
- vhost.d:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- /var/run/docker.sock:/tmp/docker.sock
- ./changes_nginx.conf:/etc/nginx/conf.d/changes.conf
environment:
- DEFAULT_HOST=site.ru
networks:
- main_network
nginx.1 | 2021/08/19 18:33:46 [emerg] 2528#2528: "user" directive is not allowed here in /etc/nginx/conf.d/changes.conf:2
proxy:
container_name: nginx-proxy
restart: always
image: jwilder/nginx-proxy
ports:
- 80:80
- 443:443
volumes:
- certs:/etc/nginx/certs
- vhost.d:/etc/nginx/vhost.d
- html:/usr/share/nginx/html
- /var/run/docker.sock:/tmp/docker.sock
- ./nginx.conf:/etc/nginx/nginx.conf:ro
environment:
- DEFAULT_HOST=site.ru
networks:
- main_network
import requests
response = requests.get('https://....//api/v1/lan/ip')
Traceback (most recent call last):
File "./BoxEnum.py", line 5, in
response = requests.get('https://myapi/api/v1/lan/ip')
File "/usr/lib/python3/dist-packages/requests/api.py", line 76, in get
return request('get', url, params=params, **kwargs)
File "/usr/lib/python3/dist-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 530, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 643, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 514, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='myapi', port=443): Max retries exceeded with url: /api/v1/lan/ip (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_ske_dhe', 'dh key too small')])")))
root@a:/BoxEnum# cat BoxEnum.py
#!/usr/bin/env python3
1. другого буду пробовать
2. я уже пробовал использовать несколько асинхронных модулей, на данный момент в своем коде более менее уверен, пришел к выводу что это скорее всего уже неприятный сюрприз(мягко говоря) от хостера.