Merge pull request 'Fix download URLs for Mastodon exports/archives' (#564) from bugfix/mastodon_archive_download_urls into master
Reviewed-on: #564
This commit is contained in:
		
						commit
						cdedf49be3
					
				| @ -28,7 +28,9 @@ template "#{node['openresty']['dir']}/snippets/mastodon.conf" do | ||||
|   owner 'www-data' | ||||
|   mode 0640 | ||||
|   variables web_root_dir: web_root_dir, | ||||
|             server_name:  server_name | ||||
|             server_name:  server_name, | ||||
|             s3_private_url: "#{node["kosmos-mastodon"]["s3_endpoint"]}/#{node["kosmos-mastodon"]["s3_bucket"]}/", | ||||
|             s3_public_url: "https://#{node["kosmos-mastodon"]["s3_alias_host"]}/" | ||||
|   notifies :reload, 'service[openresty]', :delayed | ||||
| end | ||||
| 
 | ||||
|  | ||||
| @ -108,11 +108,13 @@ location @proxy { | ||||
| 
 | ||||
|   proxy_pass http://mastodon_app; | ||||
|   proxy_buffering on; | ||||
|   proxy_redirect off; | ||||
|   proxy_http_version 1.1; | ||||
|   proxy_set_header Upgrade $http_upgrade; | ||||
|   proxy_set_header Connection $connection_upgrade; | ||||
| 
 | ||||
|   # https://github.com/mastodon/mastodon/issues/24380 | ||||
|   proxy_redirect <%= @s3_private_url %> <%= @s3_public_url %>; | ||||
| 
 | ||||
|   tcp_nodelay on; | ||||
| } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user