372 Commits

Author SHA1 Message Date
benoitc
a4803a48a6 fix 19.10 version in doc 2019-11-23 11:25:44 +01:00
benoitc
333dc9bb4d fix doc title 2019-11-23 11:18:09 +01:00
benoitc
e3659e8adc document 20.0.1 change 2019-11-23 10:39:04 +01:00
benoitc
ef7d10853d add 19.9.10 changelog 2019-11-23 10:16:51 +01:00
benoitc
441977f57c only support python >= 3.5
python 3.4 is unsupported and we should focus on offering stable
features than backporting some code to this version
2019-11-22 23:03:30 +01:00
benoitc
1aa9cf0529 fix faq
correct the versions when we changed logging to the console.
2019-11-22 21:12:03 +01:00
Randall Leeds
c25563fa95 Add Paste Deploy changes to Breaking Change list 2019-11-22 09:58:06 -08:00
David Lord
19cb68f4c3 load application from factory function (#2178)
* load application from factory function

Use `ast.parse` to validate that the string passed to the CLI is either
an attribute name or a function call. Use `ast.literal_eval` to parse
any positional and keyword arguments to the function. Call the function
to get the real application.

Co-authored-by: Connor Brinton <connor.brinton@gmail.com>

* test coverage for util.import_app

* document app factory pattern
2019-11-19 23:09:53 +01:00
Benoit Chesneau
c1f17a084e doc enhancements. 2019-10-30 17:52:01 +01:00
Benoit Chesneau
83e07e5cf3 Fixed linting error in changelog 2019-10-30 17:40:35 +01:00
Benoit Chesneau
a1bb7a935a add 20.0 changelog 2019-10-30 17:15:29 +01:00
Benoit Chesneau
9edf8e8159 add 2018 changelog doc 2019-10-30 16:15:48 +01:00
John Whitlock
40d22ae38d Add setproctitle to extras_require (#2094)
This allows you to specify that you want setproctitle installed so that
gunicorn can set meaningful process names at install time or in a
requirements file.
2019-08-20 03:27:59 +03:00
DeltaF1
89c13491af
Update install.rst
Minor grammar/punctuation fixes
2019-05-16 14:05:50 -04:00
Sebastien Williams-Wynn
678b326dc0 Fix typo in --worker-class documentation (#2030) 2019-05-09 21:13:31 +03:00
Armin Berres
c2e39fd1a7 Emphasize that full greenlet support might need additional work 2019-05-03 16:02:10 +02:00
dblack
96dde54af1 optional datadog tags for statsd metrics 2019-04-27 18:49:47 -07:00
Jat
a1ffebcdb2
worker_connections also affects the Gthread worker type 2019-02-13 22:43:21 +08:00
Benoit Chesneau
194f47f92b
Merge pull request #1957 from benoitc/simplify-paste-integrations
Simplify Paste Deployment integration
2019-02-06 09:17:28 +01:00
Benoit Chesneau
97a45805f8
remove gaiohttp worker (#1971)
* remove gaiohttp worker

worker is deprecated and won't work on latest version.
2019-01-24 23:05:28 +01:00
Daniel Pope
2ea5fbdc86 Use Python's default SSL cipher list by default (#1970) 2019-01-24 22:41:04 +01:00
Randall Leeds
47e208717b Update integration docs for Paste Deployment 2019-01-22 03:58:03 -08:00
Randall Leeds
e0f177ca45 Fix code block formatting in docs 2019-01-22 00:59:41 -08:00
Brett Randall
c85bfba8b2 Fixed typo in ssl_version doc, TLSv2 -> TLSv1_2 (TLS 1.2). (#1959)
* Fixed typo in ssl_version doc, TLSv2 -> TLSv1_2 (TLS 1.2).

Signed-off-by: Brett Randall <javabrett@gmail.com>

* revert chdir change
2019-01-22 00:03:38 +01:00
Дамјан Георгиевски
ba0d784960 documentation: update systemd deploy unit examples (#1950)
There's no need for PIDFile=, especially not for Type=notify services.
systemd knows the correct pid of the process it manages.

No need for the `--bind` option either, since gunicorn supports the
LISTEN_FDS environment variable and will use all of the sockets that systemd
provides. This way, it's also more flexible, since we can specify several
sockets in a .socket unit.

The .socket unit should specify User=www-data so that nginx can connect to the socket.
The service (gunicorn process) will inherit the file descriptor so it
doesn't even need permissions for the socket (it's nginx which needs
permissions).

tmpfiles.d is not needed.

replace ExecStop=/bin/kill with KillMode=mixed
2019-01-11 13:52:06 +01:00
Дамјан Георгиевски
9184ae8898 add systemd sd_notify support (#1897)
* add systemd sd_notify support

roughly based on sd_notify() from systemd and https://github.com/bb4242/sdnotify

only implements `READY=1` and `STATUS=Gunicorn arbiter booted` of the
protocol in the arbiter. in the future, reloads can be notified, and
possibly also other statuses.

see https://www.freedesktop.org/software/systemd/man/sd_notify.html for
more info

sd_notify() is a noop when not run in a systemd service (i.e
NOTIFY_SOCKET environment variable is not set)
2019-01-11 04:41:09 +01:00
Florian Apolloner
ee7af1247b Added support to --bind to open file descriptors (#1809)
Fixes #1107
2018-11-16 20:21:13 +03:00
Jake
efdb5acdd0 Docs: Serving WSGI app modules from Gunicorn (#1817) 2018-11-16 20:11:22 +03:00
Ron DuPlain
6d76ed8e6c Provide guidance on X-Forwarded-For access log. (#1906)
The doc change introduced in #1037 is initially helpful but then internally
inconsistent. It correctly points out that X-Forwarded-For is no longer
used in setting REMOTE_ADDR (c4873681299212d6082cd9902740eef18c2f14f1),
but then confusingly indicates a solution using the X-Forwarded-For header.

The deployment doc provides a full configuration example which includes
proxy headers as set by nginx. What is missing, before this patch, is a
clear suggestion on how to make use of the header in Gunicorn's access
log.

Accordingly, remove the confusing suggestion and replace it with a drop-in
replacement for Gunicorn's default access log format.
2018-11-16 19:52:37 +03:00
Ron DuPlain
e5c11e8f8a Clarify log format usage of header & environment (#1907) 2018-10-28 23:38:51 +03:00
Arianit Uka
bb0b366b26 Fixed systemd documentation to properly setup gunicorn unix socket
The systemd files recommended in the docs do not work. The socket file disappears after the first request, or after the service is restarted. 

This commit updates the systemd files to include the correct settings
2018-10-12 13:07:38 -07:00
Ciaran Courtney
0ce857fced [closes #1863] Docs: Add /dev/shm as a convenient alternative to making your own tmpfs mount in fchmod FAQ (#1873) 2018-09-06 00:50:35 +02:00
Benoit Chesneau
91974f0f44 Merge branch 'pr-1724' 2018-09-04 12:19:30 +02:00
Hugo
e974f30517 Drop support for Python 2
Co-Authored-By: Dustin Ingram <di@users.noreply.github.com>
Co-Authored-By: Berker Peksag <berker.peksag@gmail.com>
2018-08-01 15:31:17 +03:00
Michael Bishop
2ff595a02b "work" -> "worker" 2018-07-31 13:55:57 -07:00
Hugo
78208c8c32 Drop support for EOL Python 3.2 and 3.3 (#1839) 2018-07-29 14:07:36 +03:00
Randall Leeds
29f0394cdd Release version 19.9.0 2018-07-03 13:09:09 -07:00
Randall Leeds
3e265d4319 Regenerate settings documentation 2018-07-03 13:02:41 -07:00
Randall Leeds
c7c0f9db76 Update changelog 2018-07-03 13:00:31 -07:00
Diego Oliveira
557b91964c Merge branch 'master' into 1795-rename-async-module 2018-06-12 18:16:31 -03:00
Berker Peksag
21f0adc346
Fix AttributeError when --reload was not passed (#1806)
Fixes #1805
2018-06-11 22:04:08 +03:00
Berker Peksag
07dc716700
markup tweaks 2018-06-03 18:35:23 +03:00
Diego Oliveira
72dde4336d Fix style issues and revert some unrelated changes 2018-06-03 11:38:39 -03:00
Diego Oliveira
5a82e7c068 Change _async to base_async 2018-05-26 17:11:33 -03:00
Diego Oliveira
43e31c366b Fix gaiohttp worker 2018-05-26 10:42:15 -03:00
Patrick
9cf5b13f93 Labeled the name of the file in the sample (#1782)
The sample as-is was not clear about what file the configuration was to go in. 
This sample is to go into nginx.conf, but nginx as of 20180516 has
nginx.conf + conf.f/default.conf. This sample overrides all that into the single
file so being specific is better.
2018-05-19 11:29:13 +03:00
Berker Peksag
473ac62a2b Revert "Add test and update documentation"
This reverts commit eab1256052d7446359fb6f65279f9bebd18fafd4.
2018-05-06 18:10:53 +03:00
Berker Peksag
9320811f32 Fix markup in --log-syslog docs 2018-05-06 18:09:33 +03:00
Berker Peksag
eab1256052 Add test and update documentation 2018-05-06 18:05:54 +03:00
Randall Leeds
73cc860ead Release version 19.8.1 2018-04-30 11:37:09 -07:00