ports:
- "8000:80"
volumes:
- - ./etc/nginx.conf:/etc/nginx/conf.d/default.conf
+ - ./etc/nginx/conf.d/default.conf:/etc/nginx/conf.d/default.conf
volumes_from:
- data
links:
+++ /dev/null
-deb http://ftp.debian.org/debian/ wheezy-backports main contrib non-free
-deb-src http://ftp.debian.org/debian/ wheezy-backports main contrib non-free
-
-deb http://security.debian.org/ wheezy/updates main
-deb-src http://security.debian.org/ wheezy/updates main
-
-deb http://www.deb-multimedia.org wheezy main non-free
-deb http://www.deb-multimedia.org wheezy-backports main
-
-deb http://debian.parisson.com/debian/ wheezy main
-deb-src http://debian.parisson.com/debian wheezy main
-
--- /dev/null
+deb http://ftp.debian.org/debian/ wheezy-backports main contrib non-free
+deb-src http://ftp.debian.org/debian/ wheezy-backports main contrib non-free
+
+deb http://security.debian.org/ wheezy/updates main
+deb-src http://security.debian.org/ wheezy/updates main
+
+deb http://www.deb-multimedia.org wheezy main non-free
+deb http://www.deb-multimedia.org wheezy-backports main
+
+deb http://debian.parisson.com/debian/ wheezy main
+deb-src http://debian.parisson.com/debian wheezy main
+
+++ /dev/null
-server_tokens off;
-
-server {
- listen 80;
- server_name nginx;
- charset utf-8;
-
- 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
- # Django media export
- location /media/export {
- internal; # protect media files directory only accessible through Django
- alias /srv/media/export;
- }
- # Django media items
- location /media/items {
- internal; # protect media files directory only accessible through Django
- alias /srv/media/items;
- }
-
- }
-
- # Django static
- location /static {
- alias /srv/static; # your Django project's static files - amend as required
- }
-
- # phpmyadmin
- location /phpmyadmin/ {
- proxy_pass http://phpmyadmin/;
- #proxy_set_header Host $http_host;
- #proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- #proxy_set_header X-Forwarded-Server $http_host;
- #proxy_redirect / /phpmyadmin/;
- #proxy_cookie_path / /phpmyadmin/;
- }
-
- location / {
- uwsgi_pass app:8000;
- include /etc/nginx/uwsgi_params;
- }
-}
--- /dev/null
+server_tokens off;
+
+server {
+ listen 80;
+ server_name nginx;
+ charset utf-8;
+
+ 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
+ # Django media export
+ location /media/export {
+ internal; # protect media files directory only accessible through Django
+ alias /srv/media/export;
+ }
+ # Django media items
+ location /media/items {
+ internal; # protect media files directory only accessible through Django
+ alias /srv/media/items;
+ }
+
+ }
+
+ # Django static
+ location /static {
+ alias /srv/static; # your Django project's static files - amend as required
+ }
+
+ # phpmyadmin
+ location /phpmyadmin/ {
+ proxy_pass http://phpmyadmin/;
+ #proxy_set_header Host $http_host;
+ #proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ #proxy_set_header X-Forwarded-Server $http_host;
+ #proxy_redirect / /phpmyadmin/;
+ #proxy_cookie_path / /phpmyadmin/;
+ }
+
+ location / {
+ uwsgi_pass app:8000;
+ include /etc/nginx/uwsgi_params;
+ uwsgi_read_timeout 600;
+ proxy_set_header Host $http_host;
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_set_header X-Forwarded-Proto $scheme;
+ }
+}