Skip to content

Commit

Permalink
ralph demo resources (#3709)
Browse files Browse the repository at this point in the history
  • Loading branch information
szymi- committed Feb 17, 2022
1 parent 7334440 commit 37071c1
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,4 @@ tags
.*.swp
.*.swo
.envrc
.direnv/
34 changes: 34 additions & 0 deletions contrib/docker/ralph-demo.conf.nginx
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Ralph demo NGINX config

server {
listen 80;
server_name ralph;

location /static {
alias /opt/static;
expires 1y;
access_log off;
add_header Pragma public;
add_header Cache-Control "public";
}

location /media {
alias /opt/media;
add_header Content-disposition "attachment";
access_log off;
}

location /password_change/ {
return 301 /;
}
}

location / {
proxy_pass http://web:8000;

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;
}
}
5 changes: 5 additions & 0 deletions docker/docker-compose-demo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
version: '3'
services:
nginx:
volumes:
- /etc/nginx/conf.d:/etc/nginx/conf.d

0 comments on commit 37071c1

Please sign in to comment.