2015-04-12 03:22:15 +02:00
|
|
|
server {
|
2015-12-20 19:30:51 +01:00
|
|
|
listen 80 default_server;
|
|
|
|
|
|
|
|
server_name ponyfm-dev.poni api.ponyfm-dev.poni;
|
|
|
|
access_log /vagrant/storage/logs/system/nginx-access.log;
|
|
|
|
error_log /vagrant/storage/logs/system/nginx-error.log;
|
|
|
|
root /vagrant/public;
|
|
|
|
|
|
|
|
client_max_body_size 220M;
|
|
|
|
|
|
|
|
location / {
|
|
|
|
index index.php;
|
|
|
|
|
|
|
|
try_files $uri $uri/ /index.php$is_args$args;
|
|
|
|
}
|
|
|
|
|
|
|
|
location ~* \.(?:ttf|ttc|otf|eot|woff|font.css)$ {
|
|
|
|
add_header "Access-Control-Allow-Origin" "*";
|
|
|
|
}
|
|
|
|
|
|
|
|
expires off;
|
|
|
|
|
2016-02-03 03:39:09 +01:00
|
|
|
location /vagrant/storage/app/datastore {
|
2015-12-20 19:30:51 +01:00
|
|
|
internal;
|
2016-02-03 03:39:09 +01:00
|
|
|
alias /vagrant/storage/app/datastore/;
|
2015-12-20 19:30:51 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
location ~* \.php$ {
|
|
|
|
try_files $uri = 404;
|
|
|
|
|
|
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
|
|
fastcgi_index index.php;
|
|
|
|
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
|
|
|
|
|
|
|
|
include fastcgi_params;
|
|
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
|
|
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
|
|
|
|
}
|
2015-09-13 01:49:16 +02:00
|
|
|
}
|