feat: add Caddy as a web server
This commit is contained in:
		
							parent
							
								
									1d7f796538
								
							
						
					
					
						commit
						eb29d11134
					
				
					 5 changed files with 53 additions and 3 deletions
				
			
		
							
								
								
									
										4
									
								
								templates/web/caddy/Caddyfile.twig
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								templates/web/caddy/Caddyfile.twig
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,4 @@
 | 
			
		|||
:80
 | 
			
		||||
root * /app/docroot
 | 
			
		||||
file_server
 | 
			
		||||
php_fastcgi php:9000
 | 
			
		||||
							
								
								
									
										20
									
								
								templates/web/nginx/default.conf.twig
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								templates/web/nginx/default.conf.twig
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,20 @@
 | 
			
		|||
server {
 | 
			
		||||
  server_name _;
 | 
			
		||||
 | 
			
		||||
  root /app/docroot;
 | 
			
		||||
 | 
			
		||||
  location / {
 | 
			
		||||
    try_files $uri /index.php?$query_string;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  location ~ \.php(/|$) {
 | 
			
		||||
    fastcgi_split_path_info ^(.+?\.php)(|/.*)$;
 | 
			
		||||
    try_files $fastcgi_script_name =404;
 | 
			
		||||
    include fastcgi_params;
 | 
			
		||||
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
 | 
			
		||||
    fastcgi_param PATH_INFO $fastcgi_path_info;
 | 
			
		||||
    fastcgi_param QUERY_STRING $query_string;
 | 
			
		||||
    fastcgi_intercept_errors on;
 | 
			
		||||
    fastcgi_pass php:9000;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue