2015-04-12 03:22:15 +02:00
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
|
2015-04-30 09:23:14 +02:00
|
|
|
client_max_body_size 200M;
|
2015-10-25 03:35:37 +01:00
|
|
|
gzip on;
|
|
|
|
gzip_comp_level 4;
|
|
|
|
gzip_min_length 1280;
|
|
|
|
gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript image/x-icon image/bmp application/json;
|
|
|
|
gzip_vary on;
|
2015-04-12 03:22:15 +02:00
|
|
|
|
2015-09-20 05:17:27 +02:00
|
|
|
server_name ponyfm-dev.poni api.ponyfm-dev.poni;
|
2015-09-13 01:49:16 +02:00
|
|
|
access_log /vagrant/storage/logs/system/nginx-access.log;
|
|
|
|
error_log /vagrant/storage/logs/system/nginx-error.log;
|
2015-04-12 03:22:15 +02:00
|
|
|
root /vagrant/public;
|
|
|
|
|
|
|
|
location / {
|
|
|
|
index index.html index.php;
|
|
|
|
location ~* \.(?:ttf|ttc|otf|eot|woff|font.css)$ {
|
|
|
|
add_header "Access-Control-Allow-Origin" "*";
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!-e $request_filename) {
|
|
|
|
rewrite ^/(.*)$ /index.php?/$1 last;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-04-24 09:53:24 +02:00
|
|
|
location /dev-styles/ {
|
|
|
|
alias /vagrant/app/styles/;
|
|
|
|
}
|
|
|
|
|
|
|
|
location /dev-scripts/ {
|
|
|
|
alias /vagrant/app/scripts/;
|
|
|
|
}
|
|
|
|
|
2015-04-12 03:22:15 +02:00
|
|
|
location ~ \.php$ {
|
|
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
|
|
fastcgi_pass unix:/var/run/php5-fpm.sock;
|
|
|
|
fastcgi_index index.php;
|
|
|
|
include fastcgi_params;
|
|
|
|
}
|
|
|
|
|
|
|
|
expires off;
|
|
|
|
|
|
|
|
error_page 404 /index.php;
|
|
|
|
error_page 403 /403.html;
|
|
|
|
|
|
|
|
location /vagrant-files {
|
|
|
|
internal;
|
|
|
|
alias /vagrant-files/;
|
|
|
|
}
|
2015-09-13 01:49:16 +02:00
|
|
|
}
|