Dock nginx config

server { listen 80; listen [::]:80; server_name ~^(?<subdomain>.+)\.localhost$; client_max_body_size 150M; charset utf-8; index index.php index.html; error_log /var/log/nginx/error.log; access_log /var/log/nginx/access.log; root /var/www/html/public; location / { try_files $uri /storage/$subdomain$uri /index.php?$args; # Pasa los argumentos } location ~ \.php$ { try_files $uri =404; fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass php:9000; fastcgi_index index.php; fastcgi_buffers 8 16k; # increase the buffer size for PHP-FTP fastcgi_buffer_size 32k; # increase the buffer size for PHP-FTP fastcgi_connect_timeout 360; fastcgi_read_timeout 420; # Se amplio a 7 mins por el envio de correos fastcgi_param primaryDomain localhost; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; } }
es-MX: Condiguracion de NGINX para desarrollos locales con docker
en-US: NGINX configuration for local developments with docker
fr-FR: Configuration NGINX pour les développements locaux avec docker

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.