mirror of
https://github.com/anthonyaxenov/iptv.git
synced 2024-11-24 22:34:34 +00:00
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;
|
||
|
}
|
||
|
}
|