Ai_Admin/uwsgi.ini
2024-10-18 21:17:49 +08:00

49 lines
1.2 KiB
INI
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[uwsgi]
#项目目录
chdir=/www/wwwroot/cyqhz
#指定项目application
wsgi-file=/www/wwwroot/cyqhz/website/asgi.py
#python 程序内用以启动的application 变量名
module = website.wsgi:application
# 进程个数
processes=4
# 线程个数
threads=2
#指定启动时的pid文件路径用于停止服务和重启服务请勿删除
pidfile=/www/wwwroot/cyqhz/uwsgi.pid
# 指定ip及端口
# 默认http模式可切换至socket模式
http=0.0.0.0:30003
#socket=0.0.0.0:30003
#启动uwsgi的用户名和用户组
uid=www
gid=www
#启用主进程
master=true
# 设置缓冲区大小
buffer-size = 32768
# 后台运行,并输出日志
daemonize = /www/wwwroot/cyqhz/uwsgi.log
static-map = /static=/www/wwwroot/cyqhz/static
static-map = /media=/www/wwwroot/cyqhz/media
static-map = /media/avatars=/www/wwwroot/cyqhz/media/avatars
static-map = /media/audios=/www/wwwroot/cyqhz/media/audios
static-map = /.well-known/acme-challenge/=/www/wwwroot/java_node_ssl/.well-known/acme-challenge
# 自定义设置项请写到该处,
# 如果项目的启动方式您不想使用 wsgi-file 请注释掉,但不要删除,通讯方式(http, socket)同理;
# 最好以上面相同的格式 <注释 + 换行 + key = value> 进行书写,方便以后查阅