...
|
...
|
@@ -10,6 +10,7 @@ from BidirMap import BidirMap
|
10
|
10
|
from logging import debug
|
11
|
11
|
import S3
|
12
|
12
|
from Utils import unicodise, check_bucket_name_dns_conformity
|
|
13
|
+import Config
|
13
|
14
|
|
14
|
15
|
class S3Uri(object):
|
15
|
16
|
type = None
|
...
|
...
|
@@ -80,9 +81,9 @@ class S3UriS3(S3Uri):
|
80
|
80
|
|
81
|
81
|
def public_url(self):
|
82
|
82
|
if self.is_dns_compatible():
|
83
|
|
- return "http://%s.s3.amazonaws.com/%s" % (self._bucket, self._object)
|
|
83
|
+ return "http://%s.%s/%s" % (self._bucket, Config.Config().host_base, self._object)
|
84
|
84
|
else:
|
85
|
|
- return "http://s3.amazonaws.com/%s/%s" % (self._bucket, self._object)
|
|
85
|
+ return "http://%s/%s/%s" % (self._bucket, Config.Config().host_base, self._object)
|
86
|
86
|
|
87
|
87
|
def host_name(self):
|
88
|
88
|
if self.is_dns_compatible():
|