1. Ron Huang
  2. mirrorrr

Commits

Ron Huang  committed 79b4ff0

Added HOSTING_BASE_URL to store the hosting URL.

  • Participants
  • Parent commits 4ad1b5c
  • Branches master

Comments (0)

Files changed (1)

File mirror.py

View file
   "text/css",
 ])
 
+HOSTING_BASE_URL = 'mirror.ronhuang.org'
+
 MIRROR_HOSTS = frozenset([
   'mirrorr.com',
   'mirrorrr.com',
   'www1.mirrorrr.com',
   'www2.mirrorrr.com',
   'www3.mirrorrr.com',
+  HOSTING_BASE_URL,
 ])
 
 MAX_CONTENT_SIZE = 10 ** 6
     # how we store data.
     secure_url = None
     if self.request.scheme == "http":
-      secure_url = "https://mirrorrr.appspot.com"
+      secure_url = "https://" + HOSTING_BASE_URL
     context = {
       "latest_urls": latest_urls,
       "secure_url": secure_url,