mirror of
https://github.com/penpot/penpot.git
synced 2025-01-23 06:58:58 -05:00
🐳 🐛 Fix media and assets URI environment variables
This commit is contained in:
parent
6498c0fe44
commit
1de7f24047
5 changed files with 25 additions and 17 deletions
|
@ -46,8 +46,8 @@ The following environment variables are also honored for configuring your UXBOX
|
|||
|
||||
#### Backend
|
||||
- `-e UXBOX_HTTP_SERVER_DEBUG=...` (defaults to false)
|
||||
- `-e UXBOX_MEDIA_BASEURI=...` (defaults to http://localhost:6060/media/)
|
||||
- `-e UXBOX_STATIC_BASEURI=...` (defaults to http://localhost:6060/static/)
|
||||
- `-e UXBOX_MEDIA_URI=...` (defaults to http://localhost:6060/media/)
|
||||
- `-e UXBOX_ASSETS_URI=...` (defaults to http://localhost:6060/static/)
|
||||
- `-e UXBOX_DATABASE_USERNAME="..."` (defaults to uxbox)
|
||||
- `-e UXBOX_DATABASE_PASSWORD="..."` (defaults to youshouldoverwritethiswithsomethingelse)
|
||||
- `-e UXBOX_DATABASE_NAME="..."` (defaults to uxbox)
|
||||
|
|
|
@ -21,8 +21,8 @@ COPY --from=0 /home/uxbox/backend/dist/uxbox-backend.jar /srv/uxbox/app.jar
|
|||
COPY --from=0 /home/uxbox/backend/docker-entrypoint.sh /entrypoint.sh
|
||||
|
||||
ENV UXBOX_HTTP_SERVER_DEBUG=false \
|
||||
UXBOX_MEDIA_BASEURI="http://localhost:6060/media/" \
|
||||
UXBOX_STATIC_BASEURI="http://localhost:6060/static/" \
|
||||
UXBOX_MEDIA_URI="http://localhost:6060/media/" \
|
||||
UXBOX_ASSETS_URI="http://localhost:6060/static/" \
|
||||
UXBOX_DATABASE_USERNAME="uxbox" \
|
||||
UXBOX_DATABASE_PASSWORD="youshouldoverwritethiswithsomethingelse" \
|
||||
UXBOX_DATABASE_NAME="uxbox" \
|
||||
|
|
|
@ -2,6 +2,11 @@
|
|||
;; WARNING: this is a default secret key and
|
||||
;; it should be overwritten in production env.
|
||||
:secret "5qjiAn-QUpawUNqGP10UZKklSqbLKcdGY3sJpq0UUACpVXGg2HOFJCBejDWVHskhRyp7iHb4rjOLXX2ZjF-5cw"
|
||||
|
||||
:registration
|
||||
{
|
||||
:enabled true}
|
||||
|
||||
:smtp
|
||||
{:host "localhost" ;; Hostname of the desired SMTP server.
|
||||
:port 25 ;; Port of SMTP server.
|
||||
|
@ -15,19 +20,20 @@
|
|||
:auth-options {:alg :a256kw :enc :a128cbc-hs256}
|
||||
|
||||
:email {:reply-to "no-reply@uxbox.io"
|
||||
:from "no-reply@uxbox.io"}
|
||||
:from "no-reply@uxbox.io"
|
||||
:support "support@uxbox.io"}
|
||||
|
||||
:http {:port 6060
|
||||
:max-body-size 52428800
|
||||
:debug true}
|
||||
|
||||
:media
|
||||
{:basedir "resources/public/media"
|
||||
:baseuri "http://localhost:6060/media/"}
|
||||
{:directory "resources/public/media"
|
||||
:uri "http://localhost:6060/media/"}
|
||||
|
||||
:static
|
||||
{:basedir "resources/public/static"
|
||||
:baseuri "http://localhost:6060/static/"}
|
||||
{:directory "resources/public/static"
|
||||
:uri "http://localhost:6060/static/"}
|
||||
|
||||
:database
|
||||
{:adapter "postgresql"
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
{:verbose false}
|
||||
|
||||
:media
|
||||
{:basedir "/tmp/uxbox/media"
|
||||
:baseuri "http://localhost:6060/media/"}
|
||||
{:directory "/tmp/uxbox/media"
|
||||
:uri "http://localhost:6060/media/"}
|
||||
|
||||
:static
|
||||
{:basedir "/tmp/uxbox/static"
|
||||
:baseuri "http://localhost:6060/static/"}
|
||||
{:directory "/tmp/uxbox/static"
|
||||
:uri "http://localhost:6060/static/"}
|
||||
|
||||
:database
|
||||
{:adapter "postgresql"
|
||||
|
|
|
@ -33,8 +33,10 @@ services:
|
|||
environment:
|
||||
# HTTP setup
|
||||
- UXBOX_HTTP_SERVER_DEBUG=false
|
||||
- UXBOX_MEDIA_BASEURI=http://localhost:6060/media/
|
||||
- UXBOX_STATIC_BASEURI=http://localhost:6060/static/
|
||||
- UXBOX_MEDIA_URI="/media/"
|
||||
#- UXBOX_MEDIA_URI="http://uxbox.io/media/"
|
||||
- UXBOX_ASSETS_URI="/static/"
|
||||
#- UXBOX_ASSETS_URI="http://uxbox.io/static/"
|
||||
# Database setup
|
||||
- UXBOX_DATABASE_USERNAME="uxbox"
|
||||
- UXBOX_DATABASE_PASSWORD="uxbox_postgres_password"
|
||||
|
@ -70,8 +72,8 @@ services:
|
|||
ports:
|
||||
- 80:80
|
||||
environment:
|
||||
- "API_URL=http://localhost:6060/api/"
|
||||
#- "API_URL=http://uxbox.io/api/"
|
||||
- API_URL="http://localhost:6060/api/"
|
||||
#- API_URL="http://uxbox.io/api/"
|
||||
volumes:
|
||||
#- /srv/uxbox/frontend/html:/usr/share/nginx/html
|
||||
- /srv/uxbox/backend/resources:/srv/uxbox/resources:ro
|
||||
|
|
Loading…
Add table
Reference in a new issue