Skip to content

Commit

Permalink
Merge pull request #2326 from ekohl/patch-1
Browse files Browse the repository at this point in the history
Correct systemd socket activation example
  • Loading branch information
tilgovi committed May 8, 2020
2 parents bac7f03 + 4ababc3 commit 611a314
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/source/deploy.rst
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,9 @@ to the newly created unix socket:
# Our service won't need permissions for the socket, since it
# inherits the file descriptor by socket activation
# only the nginx daemon will need access to the socket
User=www-data
SocketUser=www-data
# Optionally restrict the socket permissions even more.
# Mode=600
# SocketMode=600

[Install]
WantedBy=sockets.target
Expand All @@ -286,8 +286,8 @@ HTML from your server in the terminal.

.. note::

``www-data`` is the default nginx user in debian, other distriburions use
different users (for example: ``http`` or ``nginx``). Check you distro to
``www-data`` is the default nginx user in debian, other distributions use
different users (for example: ``http`` or ``nginx``). Check your distro to
know what to put for the socket user, and for the sudo command.

You must now configure your web proxy to send traffic to the new Gunicorn
Expand Down

0 comments on commit 611a314

Please sign in to comment.