Spotter-VM/ushahidi/docker/etc/nginx/nginx.conf

43 lines
822 B
Nginx Configuration File
Raw Normal View History

2018-01-24 15:18:55 +01:00
user nginx;
pid /run/nginx.pid;
worker_processes 1;
error_log /dev/stderr warn;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
access_log off;
server_tokens off;
client_max_body_size 100m;
keepalive_timeout 65;
sendfile on;
tcp_nodelay on;
server {
listen 8014;
server_name localhost;
root /srv/ushahidi;
index index.php;
location / {
try_files $uri /index.html;
}
location /platform {
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root/platform/httpdocs/index.php;
fastcgi_split_path_info ^(/platform/)(.*)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
fastcgi_pass unix:/var/run/ushahidi.sock;
}
}
}