test
This commit is contained in:
1 parent
4db0660712
commit
e2a0555271
6 files changed
+87
-157
No files matched your search
@@ -0,0 +1,48 @@
|
||||
[Unit]
|
||||
Description=gunicorn daemon
|
||||
Requires=gunicorn.socket
|
||||
After=network.target
|
||||
|
||||
|
||||
[Service]
|
||||
User=root
|
||||
#WorkingDirectory=/var/www/proj/DQM/dqmback
|
||||
WorkingDirectory=/var/www/PORTAL_COD2/src
|
||||
# --timeout NNN - set timeout for gunicorn to NNN sec, default - 30sec
|
||||
# --access-logfile FILENAME - log all requests to file FILENAMEA
|
||||
# --error-logfile FILENAME - set error log file to FILENAME
|
||||
# Формат лог-файла кастомизируется, детали - в документации
|
||||
# --capture-output - redirect stdout/stderr to error-logfile
|
||||
# --log-syslog - send Gunicorn logs to Syslog
|
||||
# -log-syslog-prefix SYSLOG_PREFIX - set Syslog Prefix
|
||||
# --log-syslog-facility SYSLOG_FACILITY - set Syslog Facility, default - user(?-да, так в документации)
|
||||
# правильно пользовать local1..local7
|
||||
# --log-level=debug - set debug logging
|
||||
# levels: debug info warning error critical
|
||||
# details: https://docs.gunicorn.org/en/stable/settings.html#logging
|
||||
# --workers N - set number of workers to N
|
||||
# --bind unix:FILENAME - bind to unix socket with name FILENAME
|
||||
# --bind unix:/run/gunicorn.sock
|
||||
# --bind=127.0.0.1:9000 - bind to TCP socket 127.0.0.1:9000
|
||||
# default listen socket: 127.0.0.1:8000
|
||||
# --pid=PIDFILE - user file PIDFILE as PID File
|
||||
#
|
||||
# Howto debug NGinx+Gunicorn: https://mattsegal.dev/django-gunicorn-nginx-logging.html
|
||||
#
|
||||
#ExecStart=/usr/bin/gunicorn --workers 3 --bind unix:/var/www/application.sock wsgi:app
|
||||
|
||||
|
||||
#ExecStart=/var/www/sup/env/bin/uvicorn \
|
||||
ExecStart=/var/www/PORTAL_COD2/env/bin/gunicorn portal.wsgi:application --bind 10.252.44.60:9965 --workers 4 --error-logfile /var/log/portal/portal.error.log
|
||||
|
||||
|
||||
|
||||
# --access-logfile /var/log/gun-ukt/gun-ukt.access.log \
|
||||
# --workers 3 \
|
||||
# --timeout 600 \
|
||||
# --bind unix:/run/gunicorn.sock \
|
||||
# --limit-request-line 0 \
|
||||
# dqmback.wsgi:application
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=WebSocket Daphne Service for PORTAL_COD2-t
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
#Group = nginx
|
||||
WorkingDirectory=/var/www/PORTAL_COD2/src
|
||||
ExecStart=/var/www/PORTAL_COD2/env/bin/python /var/www/PORTAL_COD2/env/bin/daphne -p 9966 portal.asgi:application
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in new issue
Block a user