[tor-bugs] #10754 [Tor Support]: Implement an invitation based token system into webchat

Tor Bug Tracker & Wiki blackhole at torproject.org
Sat Apr 26 10:41:09 UTC 2014


#10754: Implement an invitation based token system into webchat
-----------------------------+----------------------------
     Reporter:  Sherief      |      Owner:  Sherief
         Type:  task         |     Status:  needs_revision
     Priority:  blocker      |  Milestone:
    Component:  Tor Support  |    Version:
   Resolution:               |   Keywords:  SponsorO
Actual Points:               |  Parent ID:  #10755
       Points:               |
-----------------------------+----------------------------

Comment (by Sherief):

 We've run into a couple of issues creating a staging and production
 environments on the same vm due to mod_wsgi's WSGIPythonPath limitations.
 It can take more than one path but it always prefers the first, to resolve
 this I had to run mod_wsgi's WSGIDaemonProcess which requires a python
 path for each project and to do that I had to use virtualenv (found on
 debian stable).

 The problem arises when I get into that virtual python environment which
 needs me to install django though pip (which comes pre-installed with
 virtualenv) for pups to work inside it.

 The apache config would look like this:
 {{{
 <VirtualHost *:80>
     ServerName webchat.torproject.org

     WSGIDaemonProcess pups processes=5 python-
 path=/home/sherief/prod_env/pups:/home/sherief/prod_env/lib/python2.7
 /site-packages threads=1
     WSGIProcessGroup pups
     WSGIScriptAlias / /home/sherief/prod_env/pups/pups/wsgi.py

     Alias /static/ /home/sherief/prod_env/pups/static/

     <Directory /home/sherief/prod_env/pups/static>
       Order deny,allow
       Allow from all
     </Directory>

 </VirtualHost>

 <VirtualHost *:80>
     ServerName webchat-staging.torproject.org

     WSGIDaemonProcess pups-staging processes=5 python-
 path=/home/sherief/stag_env/pups:/home/sherief/stag_env/lib/python2.7
 /site-packages threads=1
     WSGIProcessGroup pups-staging
     WSGIScriptAlias / /home/sherief/stag_env/pups/pups/wsgi.py

     Alias /static/ /home/sherief/stag_env/pups/static/

     <Directory /home/sherief/stag_env/pups/static>
       Order deny,allow
       Allow from all
     </Directory>
 </VirtualHost>
 }}}

 After finding out that pip is insecure from phoul I had to ditch this
 setup and ask him for an alternative.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/10754#comment:38>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list