|
|
@ -1,5 +1,5 @@ |
|
|
upstream jugaralpadel { |
|
|
|
|
|
server jugaralpadel:8000; |
|
|
|
|
|
|
|
|
upstream djangotutorial { |
|
|
|
|
|
server djangotutorial:8080; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
server { |
|
|
server { |
|
|
@ -7,7 +7,7 @@ server { |
|
|
listen 80; |
|
|
listen 80; |
|
|
|
|
|
|
|
|
location / { |
|
|
location / { |
|
|
proxy_pass http://jugaralpadel; |
|
|
|
|
|
|
|
|
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 X-Forwarded-For $proxy_add_x_forwarded_for; |
|
|
proxy_set_header Host $http_host; |
|
|
proxy_set_header Host $http_host; |
|
|
proxy_redirect off; |
|
|
proxy_redirect off; |
|
|
@ -15,11 +15,11 @@ server { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
location /static/ { |
|
|
location /static/ { |
|
|
alias /app/gestion_reservas/staticfiles/; |
|
|
|
|
|
|
|
|
alias /opt/app-root/src/wsgi/static/; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
location /media/ { |
|
|
location /media/ { |
|
|
alias /app/gestion_reservas/mediafiles/; |
|
|
|
|
|
|
|
|
alias /opt/app-root/src/wsgi/media/; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |