File tree Expand file tree Collapse file tree 6 files changed +36
-29
lines changed Expand file tree Collapse file tree 6 files changed +36
-29
lines changed Original file line number Diff line number Diff line change 1+ server {
2+ listen 80;
3+ root /var/www/public;
4+ index index.php;
5+
6+ location / {
7+ # Pretty URLs for Laravel.
8+ try_files $uri $uri/ /index.php?$args;
9+ }
10+
11+ location ~ \.php$ {
12+ fastcgi_split_path_info ^(.+?\.php)(/.*)$;
13+ if (!-f $document_root$fastcgi_script_name) {
14+ return 404;
15+ }
16+
17+ include fastcgi_params;
18+ fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
19+ fastcgi_param PATH_INFO $fastcgi_path_info;
20+ fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
21+
22+ fastcgi_pass localhost:9000;
23+ fastcgi_index index.php;
24+ }
25+
26+ # set client body size to 30M
27+ client_max_body_size 30M;
28+ }
Original file line number Diff line number Diff line change 1+ *
2+ ! .gitignore
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ services:
88 links :
99 - db
1010 volumes :
11+ - ./web:/etc/nginx/custom
1112 - ..:/var/www
1213
1314 db :
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ services:
88 links :
99 - db
1010 volumes :
11+ - ./web:/etc/nginx/custom
1112 - ..:/var/www
1213
1314 db :
Original file line number Diff line number Diff line change @@ -15,7 +15,8 @@ RUN apt-get update && \
1515 apt-get remove -y && \
1616 apt-get autoremove -y && \
1717 apt-get clean && \
18- rm -rf /var/lib/apt/lists/*
18+ rm -rf /var/lib/apt/lists/* && \
19+ mkdir /etc/nginx/custom
1920
2021ADD supervisor/php-fpm.conf /etc/supervisor/conf.d/php-fpm.conf
2122ADD supervisor/nginx.conf /etc/supervisor/conf.d/nginx.conf
@@ -26,3 +27,4 @@ ADD entrypoint.sh /usr/local/bin/entrypoint-web.sh
2627WORKDIR /var/www
2728
2829ENTRYPOINT ["/usr/local/bin/entrypoint-web.sh" ]
30+
Original file line number Diff line number Diff line change 1- server {
2- listen 80 ;
3- root /var/www/public;
4- index index .php;
5-
6- location / {
7- # Pretty URLs for Laravel.
8- try_files $uri $uri / /index .php?$args ;
9- }
10-
11- location ~ \.php$ {
12- fastcgi_split_path_info ^( .+?\.php)( /.*) $;
13- if ( !-f $document_root$fastcgi_script_name ) {
14- return 404 ;
15- }
16-
17- include fastcgi_params;
18- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name ;
19- fastcgi_param PATH_INFO $fastcgi_path_info ;
20- fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info ;
21-
22- fastcgi_pass localhost:9000 ;
23- fastcgi_index index .php;
24- }
25-
26- # set client body size to 30M
27- client_max_body_size 30M ;
28- }
1+ include /etc/nginx/custom/sites/*.conf;
You can’t perform that action at this time.
0 commit comments