mirror of
				https://github.com/YunoHost-Apps/funkwhale_ynh.git
				synced 2025-11-04 11:28:37 +01:00 
			
		
		
		
	Fix nginx to load css in admin site
https://dev.funkwhale.audio/funkwhale/funkwhale/-/issues/2146
This commit is contained in:
		
					parent
					
						
							
								c96def65b0
							
						
					
				
			
			
				commit
				
					
						f83c4c5b54
					
				
			
		
					 1 changed files with 13 additions and 1 deletions
				
			
		| 
						 | 
					@ -110,7 +110,7 @@ location /media/attachments/ {
 | 
				
			||||||
    # if you're storing media files in a S3 bucket.
 | 
					    # if you're storing media files in a S3 bucket.
 | 
				
			||||||
    #location ~ /_protected/media/(.+) {
 | 
					    #location ~ /_protected/media/(.+) {
 | 
				
			||||||
    #    internal;
 | 
					    #    internal;
 | 
				
			||||||
    #    alias   ${MEDIA_ROOT}/$1;                                           # NON-S3
 | 
					    #    alias  __DATA_DIR__/data/media//$1;                                           # NON-S3
 | 
				
			||||||
    #    # Needed to ensure DSub auth isn't forwarded to S3/Minio, see #932.
 | 
					    #    # Needed to ensure DSub auth isn't forwarded to S3/Minio, see #932.
 | 
				
			||||||
#       proxy_set_header Authorization "";                                  # S3
 | 
					#       proxy_set_header Authorization "";                                  # S3
 | 
				
			||||||
#       proxy_pass $1;                                                      # S3
 | 
					#       proxy_pass $1;                                                      # S3
 | 
				
			||||||
| 
						 | 
					@ -127,6 +127,18 @@ location /_protected/music/ {
 | 
				
			||||||
  more_set_headers "Access-Control-Allow-Origin: *";
 | 
					  more_set_headers "Access-Control-Allow-Origin: *";
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Allow direct access to /staticfiles
 | 
				
			||||||
 | 
					location /staticfiles/ {
 | 
				
			||||||
 | 
					  alias __DATA_DIR__/data/static/;
 | 
				
			||||||
 | 
					  more_set_headers "Access-Control-Allow-Origin: *";
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Allow direct access to only specific subdirectories in /media
 | 
				
			||||||
 | 
					location /media/dynamic_preferences/ {
 | 
				
			||||||
 | 
					  alias __DATA_DIR__/data/media/dynamic_preferences/;
 | 
				
			||||||
 | 
					  more_set_headers "Access-Control-Allow-Origin: *";
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
location /manifest.json {
 | 
					location /manifest.json {
 | 
				
			||||||
  return 302 /api/v1/instance/spa-manifest.json;
 | 
					  return 302 /api/v1/instance/spa-manifest.json;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue