From e69bc23c15c161e63bead48e4e8031d92855baed Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Sun, 24 Mar 2019 16:28:52 +0100 Subject: [PATCH] Add static endpoint in nginx --- remote/nginx-snippet.conf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/remote/nginx-snippet.conf b/remote/nginx-snippet.conf index c1478bb..44d84fb 100644 --- a/remote/nginx-snippet.conf +++ b/remote/nginx-snippet.conf @@ -1,6 +1,9 @@ root /srv/copanier; +location /static/ { + alias /srv/copanier/venv/lib/python3.7/site-packages/copanier/static/; +} + location / { proxy_pass http://copanier/; } -