🐳 🐛 Provide env variables for media and static download

This commit is contained in:
mathieu.brunot 2019-02-19 21:44:22 +01:00
parent 6394905022
commit f8ef533f6a
No known key found for this signature in database
GPG key ID: 81584BEAF692D7E0
4 changed files with 17 additions and 1 deletions

View file

@ -41,6 +41,14 @@ server {
alias /usr/share/nginx/html/view;
}
location /media {
alias /srv/uxbox/resources/media;
}
location /static {
alias /srv/uxbox/resources/static;
}
# Backend
location /api/ {
# Reverse Proxy to Backend (Avoids XSS concerns) --Update backend to be whatever your site uses to access your backend
@ -56,4 +64,5 @@ server {
# IMPORTANT: Update uxbox.{{ DOMAIN }} to your production site. This will allow cookies to work as expected when using your deployment locally
#proxy_cookie_domain localhost uxbox.{{ DOMAIN }};
}
}
}