[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs