Browse Source

Static env for nginx in slim

prieto 8 years ago
parent
commit
101337ac14
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      progs/slim/slim.py

+ 5
- 0
progs/slim/slim.py View File

@@ -382,6 +382,11 @@ server {
382 382
     listen 80;
383 383
     server_name _;
384 384
     include uwsgi_params;
385
+    
386
+    location /static/ {
387
+        uwsgi_pass unix:///lodel2/plugins/webui/templates/;
388
+    }
389
+
385 390
 """
386 391
     for name in names:
387 392
         name = name.replace('/', '_')

Loading…
Cancel
Save