]> git.parisson.com Git - timeside.git/commitdiff
add some nginx options
authorGuillaume Pellerin <yomguy@parisson.com>
Tue, 3 Mar 2015 14:25:24 +0000 (15:25 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Tue, 3 Mar 2015 14:25:24 +0000 (15:25 +0100)
Dockerfile
docker-compose.yml
examples/deploy/nginx/sites-enabled/app.conf

index 7c745fd2a69b64d16a6f4c7494aeb50269d18fab..919c00621842efcd32218f06f3475c1216df0008 100644 (file)
@@ -36,7 +36,7 @@ RUN wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O
     bash miniconda.sh -b -p /opt/miniconda && \
     rm miniconda.sh
 ENV PATH /opt/miniconda/bin:$PATH
-RUN hash -r && \ 
+RUN hash -r && \
     conda config --set always_yes yes --set changeps1 yes && \
     conda update -q conda
 
@@ -57,7 +57,7 @@ RUN conda install --file conda-requirements.txt  && \
 # Install Aubio
 RUN conda install -c thomasfillon aubio
 
-# Link Yaafe in site-packages 
+# Link Yaafe in site-packages
 RUN ln -s /usr/lib/python2.7/dist-packages/yaafelib /opt/miniconda/lib/python2.7
 
 # Clone app
index 338668f610077457fea9da2a07b27382d93f7d10..6162e318e08cce10498aebd01b62e40ec67f5ab0 100644 (file)
@@ -39,7 +39,7 @@ nginx:
     #- ./examples/deploy/static/:/var/www/static
   volumes_from:
     - datastatic
-    - datamedia 
+    - datamedia
   links:
     - app
 
index 049e332545ae98cba4ad3b0f73a38b0c8d5bd996..38ca77f790a7c6402bfdde39d902d399e2095b95 100644 (file)
@@ -3,25 +3,23 @@ server_tokens off;
 server {
        listen 80;
        server_name nginx;
+       charset utf-8;
 
-       #proxy headers for additional info
-       proxy_set_header HOST $host;
-       proxy_set_header X-Forwarded-Proto $scheme;
-       proxy_set_header X-Real-IP $remote_addr;
-       proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
-       #charset utf-8;;
-       #access_log /var/log/nginx/log/host.access.log main;
+       access_log /var/log/nginx/app-access.log;
+       error_log /var/log/nginx/app-error.log;
 
        # max upload size
        client_max_body_size 75M; # adjust to taste
-       
+
        # Django media
        location /media {
                        alias /media; # your Django project's media files - amend as required
+                autoindex on;
        }
        # Django static
        location /static {
                alias /var/www/static; # your Django project's static files - amend as required
+               autoindex on;
        }
 
        location / {
@@ -31,4 +29,3 @@ server {
        }
 }
 
-   
\ No newline at end of file