]> git.parisson.com Git - mezzo.git/commitdiff
Merge branch 'master' of git+ssh://git.forge.ircam.fr/mezzanine-organization
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 23 Mar 2017 17:08:28 +0000 (18:08 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 23 Mar 2017 17:08:28 +0000 (18:08 +0100)
1  2 
docker-compose.yml
etc/nginx/conf.d/default.conf

index c035d821c4975f7841c5de55e705b21a184dd9fa,10569c1da8ced9a163ea44901b750294cf4c4a7c..6871e4435934e1cb2e13ac665c058cac76fb76d7
@@@ -65,9 -65,10 +65,10 @@@ app
  nginx:
    image: nginx
    ports:
 -    - "8022:80"
 +    - "8024:80"
    volumes:
      - ./etc/nginx/conf.d/default.conf:/etc/nginx/conf.d/default.conf
+     - ./etc/nginx/htpasswd:/etc/nginx/htpasswd
    volumes_from:
      - var
    links:
index 99dede9022f0e0a55d5e85345df7649c6806d22f,276b15b17f2ef5783a024f53d345ce9e3d7fcdf6..87d81e95ae19108be42b34fac49769bc67ac81b1
@@@ -1,39 -1,42 +1,43 @@@
  server_tokens off;
  
- server {
-     listen 80;
-     server_name manifeste2017.ircam.fr;
-     return 301 $scheme://www.manifeste2017.ircam.fr$request_uri;
- }
+ #server {
+ #    listen 80;
+ #    server_name starts.eu;
 -#    return 301 $scheme://www.starts.eu$request_uri;
++#    return 301 $scheme://manifeste.ircam.fr$request_uri;
+ #}
  
  server {
 -    listen 80;
 -    charset utf-8;
 -    server_name _;
 -
 -    access_log /var/log/nginx/app-access.log;
 -    error_log /var/log/nginx/app-error.log;
 -
 -    # max upload size
 -    client_max_body_size 4096M;
 -
 -    # Django media
 -    location /media/ {
 -        alias /srv/media/;
 -    }
 -
 -    # Django static
 -    location /static/ {
 -        alias /srv/static/;
 -    }
 -
 -    # Django static
 -    location /doc/ {
 -        alias /srv/doc/build/html/;
 -    }
 -
 -    location / {
 -       uwsgi_pass app:8000;
 -       include /etc/nginx/uwsgi_params;
 +       listen 80;
 +       charset utf-8;
 +       server_name manifeste2017.ircam.fr;
 +
 +       access_log /var/log/nginx/app-access.log;
 +       error_log /var/log/nginx/app-error.log;
 +
 +       # max upload size
 +       client_max_body_size 4096M; # adjust to taste
 +
 +       # Django media
 +       location /media/ {
-                       alias /srv/media/; # your Django project's media files - amend as required
++                      alias /srv/media/;
 +       }
 +
 +       # Django static
 +       location /static/ {
-                alias /srv/static/; # your Django project's static files - amend as required
++               alias /srv/static/;
 +       }
 +
 +       # Django static
 +       location /doc/ {
-                alias /srv/doc/build/html/; # your Django project's static files - amend as required
++               alias /srv/doc/build/html/;
 +       }
 +
 +       location / {
 +           uwsgi_pass app:8000;
 +           include /etc/nginx/uwsgi_params;
 +       }
+        # Uncomment to restrict access with login/pass
+        #auth_basic_user_file /etc/nginx/htpasswd;
+     }
  }