Commits

Donald Stufft  committed 2639375

Allow a configurable raw package prefix

  • Participants
  • Parent commits 9f27322

Comments (0)

Files changed (3)

File config.ini.template

 cheesecake_password = secret
 key_dir = .
 simple_sign_script = /serversig
+raw_package_prefix = /raw-packages
 ; this is the secret used to sign password reset efforts - keep it secret!
 ; ''.join(random.choice(string.letters + string.digits) for n in range(64))
 reset_secret = secret
         self.cheesecake_password = c.get('webui', 'cheesecake_password')
         self.key_dir = c.get('webui', 'key_dir')
         self.simple_sign_script = c.get('webui', 'simple_sign_script')
+        self.raw_package_prefix = c.get("webui", "raw_package_prefix")
         if c.has_option('webui', 'sshkeys_update'):
             self.sshkeys_update = c.get('webui', 'sshkeys_update')
         else:
         #    internal;
         #    autoindex on;
         # }
-        self.handler.send_header("X-Accel-Redirect", "/packages_raw" + path)
+        self.handler.send_header("X-Accel-Redirect", self.config.raw_package_prefix + path)
 
         self.handler.end_headers()