[ops] Add nginx entrypoints for unfurler daemon
This commit is contained in:
		
							parent
							
								
									bba9f2608a
								
							
						
					
					
						commit
						004dcebc19
					
				@ -89,6 +89,18 @@ location ~* ^/.+\..+\.(js|css) {
 | 
				
			|||||||
	try_files /$lang/$uri /en-US/$uri =404;
 | 
						try_files /$lang/$uri /en-US/$uri =404;
 | 
				
			||||||
	expires 1y;
 | 
						expires 1y;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# unfurl preview
 | 
				
			||||||
 | 
					location /preview {
 | 
				
			||||||
 | 
						try_files /$lang/$uri $uri /en-US/$uri /en-US/index.html =404;
 | 
				
			||||||
 | 
						expires 10m;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					# unfurl renderer
 | 
				
			||||||
 | 
					location ^~ /render {
 | 
				
			||||||
 | 
						proxy_pass $mempoolSpaceUnfurler;
 | 
				
			||||||
 | 
						expires 10m;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# catch-all for all URLs i.e. /address/foo /tx/foo /block/000
 | 
					# catch-all for all URLs i.e. /address/foo /tx/foo /block/000
 | 
				
			||||||
# cache 5 minutes since they change frequently
 | 
					# cache 5 minutes since they change frequently
 | 
				
			||||||
location / {
 | 
					location / {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user