add source code and readme
This commit is contained in:
47
build/piefed/piefed-web/uwsgi.ini
Normal file
47
build/piefed/piefed-web/uwsgi.ini
Normal file
@@ -0,0 +1,47 @@
|
||||
[uwsgi]
|
||||
# Application configuration
|
||||
module = pyfedi:app
|
||||
pythonpath = /app
|
||||
virtualenv = /app/venv
|
||||
chdir = /app
|
||||
|
||||
# Process configuration
|
||||
master = true
|
||||
processes = 6
|
||||
threads = 4
|
||||
enable-threads = true
|
||||
thunder-lock = true
|
||||
vacuum = true
|
||||
|
||||
# Socket configuration
|
||||
http-socket = 127.0.0.1:8000
|
||||
uid = piefed
|
||||
gid = piefed
|
||||
|
||||
# Performance settings
|
||||
buffer-size = 32768
|
||||
post-buffering = 8192
|
||||
max-requests = 1000
|
||||
max-requests-delta = 100
|
||||
harakiri = 60
|
||||
harakiri-verbose = true
|
||||
|
||||
# Memory optimization
|
||||
reload-on-rss = 512
|
||||
evil-reload-on-rss = 1024
|
||||
|
||||
# Logging - Minimal configuration, let supervisor handle log redirection
|
||||
# Disable uWSGI's own logging to avoid permission issues, logs will go through supervisor
|
||||
disable-logging = true
|
||||
|
||||
# Process management
|
||||
die-on-term = true
|
||||
lazy-apps = true
|
||||
|
||||
# Static file serving (fallback if nginx doesn't handle)
|
||||
static-map = /static=/app/static
|
||||
static-map = /media=/app/media
|
||||
|
||||
# Environment variables for Flask
|
||||
env = FLASK_APP=pyfedi.py
|
||||
env = FLASK_ENV=production
|
||||
Reference in New Issue
Block a user