blob: 47e329560a3e40be55e112a4d07a8a58e3d2ff1c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
server {
listen 443 ssl;
root /path-to-laravel-project;
index server.php;
server_name api.domain.com;
# You MUST have an SSL certificate as we're going to transmit passwords.
# Don't worry, for testing you can use a self-signed certificate. And you
# can always use a free certificate as well, if you don't mind.
ssl_certificate /etc/nginx/ssl/botleagues.crt;
ssl_certificate_key /etc/nginx/ssl/botleagues.key;
location / {
try_files $uri $uri/ /server.php?$query_string;
}
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
}
|