server {
# SSL configuration
#
listen 443 ssl;# default_server;
listen [::]:443 ssl;# default_server;
server_name my_site.com www.my_site.com;
ssl_certificate /etc/letsencrypt/live/my_site.com/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/my_site.com/privkey.pem; # managed by Certbot
ssl_trusted_certificate /etc/letsencrypt/live/my_site.com/chain.pem;
ssl_session_cache shared:SSL:10m;
add_header Strict-Transport-Security "max-age=63072000" always;
ssl_session_cache shared:SSL:10m;
ssl_protocols TLSv1.2;
ssl_session_timeout 1d;
ssl_session_tickets off;
ssl_stapling on;
ssl_stapling_verify on;
add_header IP $remote_addr;
add_header Host $host;
location ~ uploadx|add_user$
#add_header X-Upstream $upstream_addr always;
add_header X-Upstream $request_id always;
proxy_pass http://backend;
}
location ~ put_job|get_job {
add_header X-Upstream $request_id always;
proxy_pass http://backend_a;
}
location ~ \.well-known {
default_type "text/plain";
try_files $uri $uri/ =404;
}
location / {
proxy_http_version 1.0;
# proxy_set_header Connection "";
# proxy_set_header HOST $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_buffering off;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
proxy_set_header Referer $http_referer;
proxy_set_header X-Request-Id $request_id;
proxy_pass http://static_server;
}
if ($scheme != "https") {
return 301 https://$host$request_uri;
} # managed by Certbot
}
upstream backend {
server 222.333.444.555;
}
upstream static_server {
server 777.777.222.333;
}
upstream backend_a {
server 222.333.888.999;
}
server {
if ($host = www.my_site.com) {
return 301 https://$host$request_uri;
} # managed by Certbot
if ($host = my_site.com) {
return 301 https://$host$request_uri;
} # managed by Certbot
listen 80 default_server;
listen [::]:80 default_server;
server_name my_site.com www.my_site.com;
return 404; # managed by Certbot
}
root@756565:~# curl -I http://my_site.com/.well-known/acme-challenge/123
HTTP/1.1 301 Moved Permanently
Server: nginx/1.15.8
Date: Mon, 07 Oct 2024 09:37:13 GMT
Content-Type: text/html
Content-Length: 169
Connection: keep-alive
Location: https://my_site.com/.well-known/acme-challenge/123
[youtube] Extracting URL: https://www.youtube.com/watch?v=WMUTFM6ptRY
[youtube] WMUTFM6ptRY: Downloading webpage
[youtube] WMUTFM6ptRY: Downloading ios player API JSON
[youtube] WMUTFM6ptRY: Downloading web creator player API JSON
[youtube] WMUTFM6ptRY: Downloading m3u8 information
[info] WMUTFM6ptRY: Downloading 1 format(s): 616+140
ERROR: You have requested merging of multiple formats but ffmpeg is not installed. Aborting due to --abort-on-error
Some Error! ERROR: You have requested merging of multiple formats but ffmpeg is not installed. Aborting due to --abort-on-error
Unix Timestamp - количество секунд, прошедших с 00:00:00 UTC 1 января 1970 года.
можете пояснить как так получается?
056715-02-02T21:11:43.000Z => 1727588110303