server {
server_name прокси.мой.домен ;
listen адрес:443 ssl ;
ssl_certificate "/var/www/httpd-cert/ssl.crt";
ssl_certificate_key "/var/www/httpd-cert/ssl.key";
charset utf-8;
gzip on;
gzip_proxied expired no-cache no-store private auth;
gzip_types text/css text/xml application/javascript text/plain application/json image/svg+xml image/x-icon;
gzip_comp_level 1;
set $root_path /var/www/юзер/data/www/прокси.мой.домен;
root $root_path;
disable_symlinks if_not_owner from=$root_path;
location / {
proxy_pass https://localhost:8888;
include /etc/nginx/proxy_params;
}
location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpeg|avi|zip|gz|bz2|rar|swf|ico|7z|doc|docx|map|ogg|otf|pdf|tff|tif|txt|wav|webp|woff|woff2|xls|xlsx|xml)$ {
try_files $uri $uri/ @fallback;
}
location @fallback {
proxy_pass http://127.0.0.1:81;
proxy_redirect http://127.0.0.1:81/ /;
include /etc/nginx/proxy_params;
}
include "/etc/nginx/fastpanel2-sites/юзер/прокси.мой.домен.includes";
include /etc/nginx/fastpanel2-includes/*.conf;
error_log /var/www/юзер/data/logs/прокси.мой.домен-frontend.error.log;
access_log /var/www/юзер/data/logs/прокси.мой.домен-frontend.access.log;
}
server {
server_name прокси.мой.домен ;
listen адрес:80;
return 301 https://$host$request_uri;
error_log /var/www/юзер/data/logs/прокси.мой.домен-frontend.error.log;
access_log /var/www/юзер/data/logs/прокси.мой.домен-frontend.access.log;
}
[{"entity_id":42755587,"note_type":"common","params":{"text":"\u041f\u043e\u0440\u0442\u0430\u043b OrderAdmin \u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442! \u041f\u0430\u0440\u043e\u043b\u044c \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u0430\u043d..."}}]
POST /api/v4/leads/notes HTTP/1.1
Host: {домен}.amocrm.ru
Accept: */*
Content-Type: application/json
Authorization: Bearer {ключ}
Content-Length: 157
{"_links":{"self":{"href":"https://{домен}.amocrm.ru/api/v4/leads/notes"}},"_embedded":{"notes":[{"id":432362263,"entity_id":42755587,"created_by":null,"updated_by":null,"created_at":null,"updated_at":null,"responsible_user_id":null,"group_id":null,"note_type":null,"params":null,"account_id":null,"request_id":"0","_links":{"self":{"href":"https://{домен}.amocrm.ru/api/v4/leads/42755587/notes/432362263"}}}]}}
[{"entity_id":42755587,"note_type":"common","params":{"text":"\u041f\u043e\u0440\u0442\u0430\u043b OrderAdmin \u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442! \u041f\u0430\u0440\u043e\u043b\u044c \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u0430\u043d..."}}]
POST /api/v4/leads/notes HTTP/1.1
Host: {домен}.amocrm.ru
Accept: */*
Content-Type: application/json
Authorization: Bearer {ключ}
Content-Length: 157
{"title":"Bad Request","type":"https://httpstatus.es/400","status":400,"detail":"This value should not be null."}