Current Mac Files
This commit is contained in:
4
compose-env-laravel/docker-file-nginx/Dockerfile
Executable file
4
compose-env-laravel/docker-file-nginx/Dockerfile
Executable file
@@ -0,0 +1,4 @@
|
||||
FROM nginx
|
||||
RUN apt update
|
||||
RUN apt install -y vim
|
||||
COPY conf/default.conf /etc/nginx/conf.d
|
||||
31
compose-env-laravel/docker-file-nginx/conf/default.conf
Executable file
31
compose-env-laravel/docker-file-nginx/conf/default.conf
Executable file
@@ -0,0 +1,31 @@
|
||||
server {
|
||||
listen 80 default_server;
|
||||
|
||||
server_name localhost;
|
||||
root /var/www/html/public;
|
||||
|
||||
error_log /var/log/nginx/error.log;
|
||||
access_log /var/log/nginx/access.log;
|
||||
|
||||
index index.html index.php;
|
||||
|
||||
client_max_body_size 5M;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri /index.php$is_args$args;
|
||||
}
|
||||
|
||||
location ~ ^/.+\.php(/|$) {
|
||||
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
||||
if (!-f $document_root$fastcgi_script_name) {
|
||||
return 404;
|
||||
}
|
||||
include fastcgi_params;
|
||||
fastcgi_pass php-test-docker-app:9000;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
|
||||
fastcgi_param DOCUMENT_ROOT $realpath_root;
|
||||
fastcgi_param REALPATHTEST $realpath_root;
|
||||
internal;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user