before send to remote

This commit is contained in:
5408 changed files with 652023 additions and 0 deletions

4
nginx/Dockerfile Normal file
View File

@@ -0,0 +1,4 @@
FROM nginx:1.21-alpine
RUN rm /etc/nginx/conf.d/default.conf
COPY nginx.conf /etc/nginx/conf.d

25
nginx/nginx.conf Normal file
View File

@@ -0,0 +1,25 @@
upstream example_django {
server web:8000;
}
server {
listen 80;
location / {
proxy_pass http://example_django;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_redirect off;
client_max_body_size 100M;
}
location /static/ {
alias /home/app/staticfiles/;
}
location /media/ {
alias /home/app/mediafiles/;
}
}