Changeset - bc5849dbfcdf
[Not reviewed]
0 2 0
Ben Sturmfels (bsturmfels) - 14 months ago 2023-04-20 10:23:14
ben@sturm.com.au
Remove use of directory under /run

Seems to get remove after reboot.
2 files changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
deploy/nginx.conf
Show inline comments
 
upstream {{ site_name }}_django_wsgi {
 
    keepalive 2;  # Cache 2 connections.
 
    server unix:/run/symposion/{{ site_name }}_uwsgi.sock;
 
    server unix:/run/{{ site_name }}_uwsgi.sock;
 
}
 

	
 
server {
 
    listen 80;
 
    server_name {{ env.domain }};
 
    return 301 https://{{ env.domain }}$request_uri;
deploy/uwsgi.ini
Show inline comments
...
 
@@ -2,26 +2,26 @@
 
strict = true  # Fail if unknown config parameter found.
 
plugins = python3
 
chdir = {{ project_dir }}
 
home = {{ virtualenv }}
 
module = pinaxcon.wsgi
 
master = true
 
socket = /run/symposion/{{ site_name }}_uwsgi.sock
 
socket = /run/{{ site_name }}_uwsgi.sock
 
processes = 3
 
# Reduced this again now that reports are deferred to a queued task. Could
 
# potentially be further reduced.
 
harakiri = 15
 
max-requests = 5000
 
vacuum = true
 
# For Sentry, see https://docs.sentry.io/clients/python/advanced/#a-note-on-uwsgi.
 
enable-threads = true
 
log-prefix = {{ site_name }}
 

	
 
# Enable uWSGI stats server for use with uwsgitop.
 
# Run with: `sudo -u www-data uwsgitop /run/{{ site_name }}/django_uwsgi_stats.socket`
 
stats = /run/{{ site_name }}/django_uwsgi_stats.socket
 
stats = /run/{{ site_name }}_uwsgi_stats.socket
 
# Memory reporting is useful for reviewing memory consumption with uwsgitop, but
 
# makes the logs a little noiser.
 
# memory-report = true
 

	
 
# Always use UTF-8 as the encoding for reading/writing files and other,
 
# regardless of system preferences. Will be default in Python 3.15. We were
0 comments (0 inline, 0 general)