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

Loading…
Cancel
Save