-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlaravel.conf.example
45 lines (37 loc) · 1.23 KB
/
laravel.conf.example
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
server {
listen 80;
listen [::]:80;
# For https
# listen 443 ssl;
# listen [::]:443 ssl ipv6only=on;
# ssl_certificate /etc/nginx/certs/dev-selfsigned.crt;
# ssl_certificate_key /etc/nginx/certs/dev-selfsigned.key;
server_name laravel.localhost;
root ${APP_CODE_PATH_CONTAINER}/laravel/public;
index index.php index.html index.htm;
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php$ {
try_files $uri /index.php =404;
# if you want to run different php version from another php image you have to specify the image name with port like ***fastcgi_pass imagename:9000***
# fastcgi_pass php-fpm7.3:9000;
fastcgi_pass php-upstream;
fastcgi_index index.php;
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
#fixes timeouts
fastcgi_read_timeout 600;
include fastcgi_params;
}
location ~ /(\.|phpdock) {
deny all;
return 404;
}
location /.well-known/acme-challenge/ {
root ${APP_CODE_PATH_CONTAINER}/letsencrypt/;
log_not_found off;
}
access_log off;
}