Skip to content

Commit

Permalink
Удаляет фичу для Телеграма
Browse files Browse the repository at this point in the history
  • Loading branch information
pepelsbey committed Aug 15, 2024
1 parent f189861 commit 42087c9
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -32,23 +32,6 @@ server {

location ~ /podcast/(cover\.png|feed|episodes/\d+\.mp3) {
root /var/www/web-standards.ru;

if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' 'https://instantview.telegram.org';
add_header 'Access-Control-Allow-Methods' 'GET';
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
add_header 'Access-Control-Max-Age' 1728000;
add_header 'Content-Type' 'text/plain; charset=utf-8';
add_header 'Content-Length' 0;
return 204;
}

if ($request_method = 'GET') {
add_header 'Access-Control-Allow-Origin' 'https://instantview.telegram.org';
add_header 'Access-Control-Allow-Methods' 'GET, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range';
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
}
}

ssl_certificate /etc/letsencrypt/live/web-standards.ru/fullchain.pem;
Expand Down

0 comments on commit 42087c9

Please sign in to comment.