Correct systemd socket activation example

This commit is contained in:
Ewoud Kohl van Wijngaarden 2020-05-05 12:49:22 +02:00 committed by GitHub
parent bac7f0300b
commit 4ababc368b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
@ -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