Commit feb0f248 authored by sim's avatar sim

Adapt nginx conf to local usage

parent fff90896
......@@ -51,12 +51,12 @@ server {
# Add index.php to the list if you are using PHP
#index index.html index.htm index.nginx-debian.html;
server_name _ stable.gargantext.org gargantext.org ;
server_name _ localhost ;
# Django media
location /media {
alias /var/www/gargantext/media; # your Django project's media files - amend as required
alias /srv/gargantext_media; # your Django project's media files - amend as required
}
location /static {
......@@ -72,23 +72,3 @@ server {
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
}
server {
listen 80 ;
listen [::]:80;
server_name dl.gargantext.org ;
error_page 404 /index.html;
location / {
root /var/www/dl ;
proxy_set_header Host $host;
proxy_buffering off;
}
access_log /var/log/nginx/dl.gargantext.org-access.log;
error_log /var/log/nginx/dl.gargantext.org-error.log;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment