From 4ababc368bb2d1bfbf938e058dd8b4f0ab63b7e2 Mon Sep 17 00:00:00 2001 From: Ewoud Kohl van Wijngaarden Date: Tue, 5 May 2020 12:49:22 +0200 Subject: [PATCH] Correct systemd socket activation example --- docs/source/deploy.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/source/deploy.rst b/docs/source/deploy.rst index 7be1b9c7..d6f3dfa8 100644 --- a/docs/source/deploy.rst +++ b/docs/source/deploy.rst @@ -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