upstream djangotutorial-git {
|
|
server djangotutorial-git:8080;
|
|
}
|
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
location / {
|
|
proxy_pass https://djangotutorial-git-djangotutorial.apps.ocp-cluster.reymota.lab;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header Host $http_host;
|
|
proxy_redirect off;
|
|
client_max_body_size 100M;
|
|
}
|
|
|
|
location /static/ {
|
|
alias /opt/app-root/src/wsgi/static/;
|
|
}
|
|
|
|
location /media/ {
|
|
alias /opt/app-root/src/wsgi/media/;
|
|
}
|
|
|
|
}
|