Nginx¶
See nginx documentation for more details about this server.
Note
Make sure the needed uWSGI service is working before configuring the server.
Installation¶
Configuration¶
Create a new configuration file/etc/nginx/sites-available/muscle_device
with the following contents:
The value of <PATH_TO_SOCKET>
is configured in the devices muscle_device.ini
and defaults to /tmp/muscle_device.sock
. Replace it with the correct path.
The port and server name can be adjusted to your needs.
Enable the Configuration¶
To use the device API enable the newly configured site by creating a link and restarting the server: