Re: [pylons-discuss] Best practices for running Pyramid (docker) and nginx (host) deployment

2022-01-07 Thread 'Jonathan Vanasco' via pylons-discuss
On Monday, December 13, 2021 at 9:14:30 PM UTC-5 the...@luhn.com wrote: > 1) pserve isn’t really comparable with gunicorn, its just a way to launch > a server, such as gunicorn or waitress. You’re probably using waitress, > that’s what the Pyramid docs use. > > I personally use gunicorn, but

Re: [pylons-discuss] Best practices for running Pyramid (docker) and nginx (host) deployment

2021-12-19 Thread Gerhard Schmidt
Hi Jens, you must edit setting at two places in the nginx server definition you must add proxy_set_headerHost $host; proxy_set_headerX-Real-IP $remote_addr; proxy_set_headerX-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_headerX-Forwarded-Proto $scheme;

Re: [pylons-discuss] Best practices for running Pyramid (docker) and nginx (host) deployment

2021-12-19 Thread Steve Piercy
Does Sentry monitor what you want? https://docs.sentry.io/platforms/python/guides/pyramid/ --steve On 12/19/21 4:22 PM, Jens Troeger wrote: Oh, and more question… Monitoring. For example, to monitor Dramatiq ’s asynchronous workers it provides a middleware

Re: [pylons-discuss] Best practices for running Pyramid (docker) and nginx (host) deployment

2021-12-19 Thread Jens Troeger
Oh, and more question… Monitoring. For example, to monitor Dramatiq ’s asynchronous workers it provides a middleware for Prometheus to gather metrics. What’s does the community

Re: [pylons-discuss] Best practices for running Pyramid (docker) and nginx (host) deployment

2021-12-17 Thread Jens Troeger
Thank you, everyone! @Theron, yes I meant “forwardED”, just a typo. I’ll review the configuration and try again. Regarding the Docker link: my project has heaps of dependencies that I offloaded into another base image, so I think I won’t be able to build on top of yours. @Michael, glad to

Re: [pylons-discuss] Best practices for running Pyramid (docker) and nginx (host) deployment

2021-12-14 Thread tonthon
Hello, I don't know about waitress. I personnaly use gunicorn, gunicorn doesn't trust headers transmitted by a remote reverse proxy unless you tell him to through the *--forwarded-allow-ips* setting. Maybe waitress has a similar setting ? Le 14/12/2021 à 01:21, Jens Troeger a écrit :

Re: [pylons-discuss] Best practices for running Pyramid (docker) and nginx (host) deployment

2021-12-13 Thread Andreas Kaiser
If the other solutions don't work for you, you can also set ``url_scheme`` in your config, for example: [server:main] use = egg:waitress#main port = 6543 url_scheme = https HTH, Andreas On 14 Dec 2021, at 1:21, Jens Troeger wrote: Hello, I’ve seen some

Re: [pylons-discuss] Best practices for running Pyramid (docker) and nginx (host) deployment

2021-12-13 Thread Michael Merickel
The linked waitress docs do work. I deploy waitress behind nginx and envoy and heroku regularly using the guides in there. Make sure to configure the trusted proxy settings and ensure the upstream is setting the right headers. - Michael > On Dec 13, 2021, at 18:22, Jens Troeger wrote: > >

Re: [pylons-discuss] Best practices for running Pyramid (docker) and nginx (host) deployment

2021-12-13 Thread Theron Luhn
1) pserve isn’t really comparable with gunicorn, its just a way to launch a server, such as gunicorn or waitress. You’re probably using waitress, that’s what the Pyramid docs use. I personally use gunicorn, but many on this mailing list are using waitress with success, so I think it’s a fine

[pylons-discuss] Best practices for running Pyramid (docker) and nginx (host) deployment

2021-12-13 Thread Jens Troeger
Hello, I’ve seen some conversation here about running a Pyramid app server inside a Docker container, but none has really answered my questions. My setup is that nginx runs on the host and currently uses *proxy_pass* to