From 4d6f7ab669234f5b43e3dfcae702b4b2ae46fff6 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Tue, 28 Jun 2022 11:07:59 +0200 Subject: [PATCH] use relative /media/, mv unix socket --- app/run/.placeholer | 0 app/settings.py | 2 +- app/wsgi.ini | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) delete mode 100644 app/run/.placeholer diff --git a/app/run/.placeholer b/app/run/.placeholer deleted file mode 100644 index e69de29b..00000000 diff --git a/app/settings.py b/app/settings.py index e2b52826..f96a079d 100644 --- a/app/settings.py +++ b/app/settings.py @@ -106,7 +106,7 @@ MEDIA_ROOT = '/srv/media/' # trailing slash if there is a path component (optional in other cases). # Examples: "http://media.lawrence.com", "http://example.com/media/" #MEDIA_URL = 'http://pre-barreau.com/archives/' -MEDIA_URL = 'https://e-learning.pro-barreau.com/media/' +MEDIA_URL = '/media/' # Absolute path to the directory static files should be collected to. # Don't put anything in this directory yourself; store your static files diff --git a/app/wsgi.ini b/app/wsgi.ini index 8f56c13d..7404e995 100644 --- a/app/wsgi.ini +++ b/app/wsgi.ini @@ -1,6 +1,6 @@ [uwsgi] -socket = /srv/app/run/wsgi.sock +socket = /var/run/elearning/wsgi.sock chdir = /srv/app/ module = wsgi touch-reload = /srv/app/wsgi.py -- 2.39.5