Initial commit
This commit is contained in:
30
servers/deployment/*-nginx.conf
Normal file
30
servers/deployment/*-nginx.conf
Normal file
@@ -0,0 +1,30 @@
|
||||
upstream ******* {
|
||||
server unix:///var/www/*******/deployment/uwsgi_nginx.sock;
|
||||
}
|
||||
|
||||
|
||||
server {
|
||||
charset utf-8;
|
||||
client_max_body_size 75M;
|
||||
listen 80;
|
||||
server_name ==========;
|
||||
|
||||
if ($host !~ ^(app\.example\.com|admin\.example\.com)$) {
|
||||
return 404;
|
||||
}
|
||||
|
||||
location / {
|
||||
uwsgi_pass *******;
|
||||
include /var/www/*******/deployment/uwsgi_params;
|
||||
}
|
||||
|
||||
location /static {
|
||||
# autoindex on;
|
||||
alias /var/www/*******/static/;
|
||||
}
|
||||
|
||||
location /media/ {
|
||||
# autoindex on;
|
||||
alias /var/www/*******/media/;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user