custom nginx config for mimetype override (wasm)
This commit is contained in:
		
							parent
							
								
									65bc22735d
								
							
						
					
					
						commit
						9c5f2c5992
					
				
					 1 changed files with 33 additions and 0 deletions
				
			
		
							
								
								
									
										33
									
								
								app-nginx.conf.sigil
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								app-nginx.conf.sigil
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,33 @@ | |||
| worker_processes 1; | ||||
| error_log stderr; | ||||
| pid nginx.pid; | ||||
| daemon off; | ||||
| 
 | ||||
| events { | ||||
|   worker_connections 768; | ||||
| } | ||||
| 
 | ||||
| http { | ||||
|   types_hash_max_size 2048; | ||||
|   include mime.types; | ||||
|   types { | ||||
|       application/wasm wasm; | ||||
|   } | ||||
|   charset UTF-8; | ||||
|   server { | ||||
|     listen {{ $.PORT }}; | ||||
|     server_name  _; | ||||
|     {{ if ne $.NGINX_ROOT "" }} | ||||
|       root /app/www/{{ $.NGINX_ROOT }}; | ||||
|     {{ else }} | ||||
|       root /app/www; | ||||
|     {{ end }} | ||||
|     index index.html; | ||||
|     port_in_redirect off; | ||||
| 
 | ||||
|     location / { | ||||
|       try_files $uri $uri/ /index.html; | ||||
|     } | ||||
|   } | ||||
| } | ||||
| 
 | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue