forked from fediversity/fediversity
		
	Remove useless S3_HOSTNAME envionment variable
				
					
				
			`S3_HOSTNAME` is only usedful for path-style buckets where Mastodon will use `<S3_HOSTNAME>/<S3_BUCKET>`. However, we use domain-style, and that is exactly what `S3_ALIAS_HOST` is for
This commit is contained in:
		
							parent
							
								
									6ef263f53e
								
							
						
					
					
						commit
						37aac118ce
					
				
					 1 changed files with 1 additions and 3 deletions
				
			
		|  | @ -46,9 +46,7 @@ lib.mkIf (config.fediversity.enable && config.fediversity.mastodon.enable) { | |||
|       AWS_ACCESS_KEY_ID = snakeoil_key.id; | ||||
|       AWS_SECRET_ACCESS_KEY = snakeoil_key.secret; | ||||
|       S3_PROTOCOL = "http"; | ||||
|       S3_HOSTNAME = config.fediversity.internal.garage.web.rootDomain; | ||||
|       # by default it tries to use "<S3_HOSTNAME>/<S3_BUCKET>" | ||||
|       S3_ALIAS_HOST = "${S3_BUCKET}.${S3_HOSTNAME}"; | ||||
|       S3_ALIAS_HOST = "${S3_BUCKET}.${config.fediversity.internal.garage.web.rootDomain}"; | ||||
|       # SEE: the last section in https://docs.joinmastodon.org/admin/optional/object-storage/ | ||||
|       # TODO: can we set up ACLs with garage? | ||||
|       S3_PERMISSION = ""; | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue