mirror of
https://github.com/anthonyaxenov/iptv.git
synced 2024-11-01 09:36:14 +00:00
AnthonyAxenov
c43439b9cc
- проект переписан на flight + twig, laravel-like хелперы - docker-окружение - новая страница с подробностями о плейлисте - улучшен json о плейлисте - нормальный роутинг - нормальная статусная система - попытка перекодировки при не utf-8 + предупреждение об этом - дополнены FAQ + README
31 lines
918 B
Plaintext
31 lines
918 B
Plaintext
server {
|
|
server_name iptv.local;
|
|
listen 80;
|
|
root /var/www/public;
|
|
index index.php;
|
|
gzip on;
|
|
gzip_vary on;
|
|
gzip_proxied any;
|
|
gzip_comp_level 6;
|
|
gzip_buffers 16 8k;
|
|
gzip_http_version 1.1;
|
|
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
|
|
location ~* \.(jpg|jpeg|gif|css|png|js|ico|html)$ {
|
|
access_log off;
|
|
expires max;
|
|
log_not_found off;
|
|
}
|
|
location / {
|
|
try_files $uri $uri/ /index.php$is_args$args;
|
|
}
|
|
location ~ \.php$ {
|
|
try_files $uri /index.php =404;
|
|
fastcgi_pass php:9000;
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
fastcgi_index index.php;
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
|
include fastcgi_params;
|
|
}
|
|
}
|