So here is my deployment scenario for web2py:

web2py is running on AWS.

I have a 4 node setup on AWS: 1 load balancer, 2 webpy behind nginx with
uwsgi and 1 postgres database.  nginx is behind the load balancer.

All outgress traffic(except local network) from web2py and database nodes
has been blocked. Which means web2py cannot directly connect to a mail
server that is running outside of this local network. And in this case mail
server is a third party and running outside local network.

There is a separate proxy that is setup and all internet traffic(in this
case: captcha and outgoing mails) needs to go via this proxy so that the
traffic can be controlled better and audited as well.

I have set the http_proxy and https_proxy env variables for uwsgi processes
and it has helped resolve the captcha issues. i.e. now all the google
catpcha validation is going this proxy.

Now I understand that this is too much of an overkill for a web2py kind of
application, but it has to be done this way due to some policy.

Hope this clarifies it a bit.



On Mon, Aug 29, 2016 at 6:26 AM, Massimo Di Pierro <
[email protected]> wrote:

> Not sure I understand what you mean. Do you want emails to go out using a
> different network interface than the incoming http connections?
>
>
> On Friday, 26 August 2016 08:19:36 UTC-5, Saifuddin Rangwala wrote:
>>
>> I meant to say: I tried searching and found a few threads where people
>> tried attempting the same in the past but it is "not" very clear what was
>> the solution.
>>
>> Apology for spam.
>>
>> On Friday, August 26, 2016 at 6:45:46 PM UTC+5:30, Saifuddin Rangwala
>> wrote:
>>>
>>> Hi,
>>>
>>>     In my environment, I have web2py running inside restricted network
>>> that doesn't have direct internet access.
>>>
>>> I have a socks proxy that can help with access to internet from web2py
>>> host.
>>>
>>> Is there a way to configure a global socks proxy for web2py, such that
>>> everything like emails, catpcha etc.. will use that socks proxy?
>>>
>>> I tried searching and found a few threads where people tried attempting
>>> the same in the past but it is very clear what was the solution.
>>>
>>> Thanks and appreciate the help!
>>>
>> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Saifuddin,
---------------------------------------------
Reach me @ +91 9850815274
---------------------------------------------

"The secret to find something is knowing where it is"

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to