mirror of
https://github.com/penpot/penpot.git
synced 2025-05-10 06:46:39 +02:00
🐳 🐛 Provide env variables for media and static download
This commit is contained in:
parent
6394905022
commit
f8ef533f6a
4 changed files with 17 additions and 1 deletions
|
@ -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 }};
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue