Cleanup contributed files.
This commit is contained in:
@@ -1,19 +0,0 @@
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80 ipv6only=on;
|
||||
server_name mayan;
|
||||
access_log /var/log/nginx/access_mayan.log;
|
||||
error_log /var/log/nginx/error_mayan.log;
|
||||
|
||||
location / {
|
||||
uwsgi_pass unix:///run/uwsgi/app/mayan/socket;
|
||||
include uwsgi_params;
|
||||
uwsgi_param UWSGI_SCHEME $scheme;
|
||||
uwsgi_param SERVER_SOFTWARE nginx/$nginx_version;
|
||||
}
|
||||
|
||||
location /static/ {
|
||||
root /srv/mayan/projects/mayan/mayan-edms/mayan/media/;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
upstream app_server {
|
||||
server unix:/var/tmp/filesystem.sock fail_timeout=0;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
|
||||
access_log off;
|
||||
error_log /var/log/nginx/mayan-edms_error.log;
|
||||
|
||||
gzip on;
|
||||
gzip_http_version 1.0;
|
||||
gzip_comp_level 2;
|
||||
gzip_proxied any;
|
||||
gzip_min_length 1100;
|
||||
gzip_buffers 16 8k;
|
||||
gzip_types text/plain text/css application/x-javascript text/xml
|
||||
application/xml application/xml+rss text/javascript;
|
||||
|
||||
# Some version of IE 6 don't handle compression well on some mime-types, so just disable for them
|
||||
gzip_disable "MSIE [1-6].(?!.*SV1)";
|
||||
|
||||
# Set a vary header so downstream proxies don't send cached gzipped content to IE6
|
||||
gzip_vary on;
|
||||
|
||||
location / {
|
||||
client_max_body_size 2M;
|
||||
proxy_read_timeout 600s;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_redirect off;
|
||||
if (!-f $request_filename) {
|
||||
proxy_pass http://app_server;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
location /static {
|
||||
expires 1h;
|
||||
alias /usr/share/mayan-edms/lib/python2.7/site-packages/mayan/media/static;
|
||||
}
|
||||
|
||||
location /favicon.ico {
|
||||
alias /usr/share/mayan-edms/lib/python2.7/site-packages/mayan/media/static/core/images/favicon.ico;
|
||||
}
|
||||
}
|
||||
@@ -1,34 +0,0 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name mayan.crossculturalconsult.com www.mayan.crossculturalconsult.com;
|
||||
|
||||
access_log /var/log/nginx/mayan.crossculturalconsult.com.access.log;
|
||||
error_log /var/log/nginx/mayan.crossculturalconsult.com.error.log;
|
||||
root /home/mayan/production/;
|
||||
|
||||
location /static/ {
|
||||
alias /home/mayan/production/static_collected/;
|
||||
}
|
||||
|
||||
location /media/ {
|
||||
alias /home/mayan/production/media/;
|
||||
}
|
||||
|
||||
location = /favicon.ico {
|
||||
alias /home/mayan/production/media/favicon.ico;
|
||||
}
|
||||
|
||||
location = /robots.txt {
|
||||
alias /home/mayan/production/media/robots.txt;
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:8731;
|
||||
proxy_redirect off;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
client_max_body_size 10m;
|
||||
}
|
||||
allow all;
|
||||
}
|
||||
Reference in New Issue
Block a user