mirror of
				https://github.com/laosb/ghos3.git
				synced 2025-11-03 23:51:37 +00:00 
			
		
		
		
	subdomain used as per S3 latest endpoint guidelines
This commit is contained in:
		
							parent
							
								
									74be77ffdf
								
							
						
					
					
						commit
						1bc60e8f40
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -72,11 +72,11 @@ class S3Storage extends StorageBase {
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    if(this.forcePathStyle) {
 | 
					    if(this.forcePathStyle) {
 | 
				
			||||||
      defaultHost = `https://s3${
 | 
					      defaultHost = `https://s3${
 | 
				
			||||||
        this.region === 'us-east-1' ? '' : `-${this.region}`
 | 
					        this.region === 'us-east-1' ? '' : `.${this.region}`
 | 
				
			||||||
      }.amazonaws.com/${this.bucket}`
 | 
					      }.amazonaws.com/${this.bucket}`
 | 
				
			||||||
    } else {
 | 
					    } else {
 | 
				
			||||||
      defaultHost = `https://${this.bucket}.s3${
 | 
					      defaultHost = `https://${this.bucket}.s3${
 | 
				
			||||||
        this.region === 'us-east-1' ? '' : `-${this.region}`
 | 
					        this.region === 'us-east-1' ? '' : `.${this.region}`
 | 
				
			||||||
      }.amazonaws.com`
 | 
					      }.amazonaws.com`
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue