Przeglądaj źródła

Added conf files directly to project.

tags/v0.5.0
Isaac Bythewood 12 lat temu
rodzic
commit
cf443b6d28
2 zmienionych plików z 38 dodań i 0 usunięć
  1. +25
    -0
      conf/nginx.conf
  2. +13
    -0
      conf/uwsgi.ini

+ 25
- 0
conf/nginx.conf Wyświetl plik

@@ -0,0 +1,25 @@
server {
listen 80;
server_name pinry.bythewood.me;

access_log /srv/www/pinry/logs/access.log;
error_log /srv/www/pinry/logs/error.log;

location /static {
alias /srv/www/pinry/static;
expires max;
access_log off;
}

location /media {
alias /srv/www/pinry/media;
expires max;
access_log off;
}

location / {
include uwsgi_params;
uwsgi_pass unix:/srv/www/pinry/uwsgi/socket;
}
}


+ 13
- 0
conf/uwsgi.ini Wyświetl plik

@@ -0,0 +1,13 @@
[uwsgi]
projectname = pinry
base = /srv/www/%(projectname)

protocol = uwsgi
app = wsgi
plugins = http,python
home = %(base)
pythonpath = %(base)
module = %(app)
socket = %(base)/uwsgi/socket
logto = %(base)/logs/uwsgi.log


Ładowanie…
Anuluj
Zapisz