Pony.fm/vagrant/pony.fm.nginx.site.config

40 lines
948 B
Text
Raw Permalink Normal View History

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;
location /vagrant/storage/app/datastore {
2015-12-20 19:30:51 +01:00
internal;
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;
}
}