#!/usr/bin/env bash

exec uwsgi \
  --plugins python \
  --plugins ping \
  --socket 0.0.0.0:3031 \
  --chmod-socket \
  --pidfile /tmp/uwsgi-acoustid-server-web.pid \
  --master \
  --disable-logging \
  --log-date \
  --buffer-size 10240 \
  --workers 5 \
  --harakiri 30 \
  --harakiri-verbose \
  --max-requests 500 \
  --post-buffering 1 \
  --need-app \
  --virtualenv /opt/acoustid/server/venv \
  --python-path /opt/acoustid/server \
  --module acoustid.web.app:app

#!/usr/bin/env bash

exec uwsgi \
  --plugins python \
  --plugins ping \
  --socket 0.0.0.0:3031 \
  --chmod-socket \
  --pidfile /tmp/uwsgi-acoustid-server-web.pid \
  --master \
  --disable-logging \
  --log-date \
  --buffer-size 10240 \
  --workers 4 \
  --harakiri 30 \
  --harakiri-verbose \
  --max-requests 500 \
  --post-buffering 1 \
  --need-app \
  --static-map /static=/opt/acoustid/server/acoustid/web/static \
  --static-map /favicon.ico=/opt/acoustid/server/acoustid/web/static/favicon.ico \
  --static-map /robots.txt=/opt/acoustid/server/acoustid/web/static/robots.txt \
  --static-cache-paths 3600 \
  --offload-threads 4 \
  --virtualenv /opt/acoustid/server/venv \
  --python-path /opt/acoustid/server \
  --module acoustid.web.app:app

Add static files to the web uwsgi process
Add static files to the web uwsgi process
