mirror of
				https://github.com/cinnyapp/cinny.git
				synced 2025-11-04 06:20:28 +03:00 
			
		
		
		
	add ngnix conf file for docker build (#1837)
This commit is contained in:
		
							parent
							
								
									b387370aaf
								
							
						
					
					
						commit
						2157f9a322
					
				
					 3 changed files with 28 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -19,9 +19,16 @@ server {
 | 
			
		|||
 | 
			
		||||
	location / {
 | 
			
		||||
		root /opt/cinny/dist/;
 | 
			
		||||
		index index.html;
 | 
			
		||||
	}
 | 
			
		||||
	location ~* ^\/(login|register) {
 | 
			
		||||
		try_files $uri $uri/ /index.html;
 | 
			
		||||
 | 
			
		||||
		rewrite ^/config.json$ /config.json break;
 | 
			
		||||
    rewrite ^/manifest.json$ /manifest.json break;
 | 
			
		||||
 | 
			
		||||
    rewrite ^.*/olm.wasm$ /olm.wasm break;
 | 
			
		||||
    rewrite ^/pdf.worker.min.js$ /pdf.worker.min.js break;
 | 
			
		||||
 | 
			
		||||
    rewrite ^/public/(.*)$ /public/$1 break;
 | 
			
		||||
    rewrite ^/assets/(.*)$ /assets/$1 break;
 | 
			
		||||
 | 
			
		||||
    rewrite ^(.+)$ /index.html break;
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue