🐳 🐛 Fix media and assets URI environment variables

This commit is contained in:
mathieu.brunot 2019-02-19 22:31:59 +01:00
parent 6498c0fe44
commit 1de7f24047
No known key found for this signature in database
GPG key ID: 81584BEAF692D7E0
5 changed files with 25 additions and 17 deletions

View file

@ -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" \

View file

@ -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"

View file

@ -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"