Changing docroots to have the same defaults
Caddy, NGINX and Apache2 should have the same default application paths. The `public/` path suffix is now added in the dotenv file to be able to use Laradock for non-laravel projects as well. Also, updated the documentation.
This commit is contained in:
		@@ -1,6 +1,6 @@
 | 
			
		||||
# Docs: https://caddyserver.com/docs/caddyfile
 | 
			
		||||
0.0.0.0:80
 | 
			
		||||
root /var/www/public
 | 
			
		||||
root /var/www
 | 
			
		||||
fastcgi / php-fpm:9000 php {
 | 
			
		||||
    index index.php
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -19,6 +19,6 @@ RUN curl --silent --show-error --fail --location \
 | 
			
		||||
 | 
			
		||||
EXPOSE 80 443 2015
 | 
			
		||||
 | 
			
		||||
WORKDIR /var/www/public
 | 
			
		||||
WORKDIR /var/www
 | 
			
		||||
 | 
			
		||||
CMD ["/usr/bin/caddy", "-conf", "/etc/Caddyfile"]
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user