2 Commits

  1. 3
      .env.example
  2. 9
      CHANGELOG.md
  3. 12
      config/releases.exs
  4. 2
      mix.exs

3
.env.example

@ -2,5 +2,4 @@ SECRET_KEY_BASE=
DATABASE_URL=
PUBLIC_URL=
PORT=
MIRAGE_KEY_PATH=
MIRAGE_CERT_PATH=
UPLOAD_DIR=

9
CHANGELOG.md

@ -5,6 +5,15 @@ See [Conventional Commits](Https://conventionalcommits.org) for commit guideline
<!-- changelog -->
## [v0.80.0](https://git.inhji.de/inhji/mirage/compare/v0.79.3...v0.80.0) (2021-03-20)
### Features:
* configurable uploads dir
## [v0.79.3](https://git.inhji.de/inhji/mirage/compare/v0.79.2...v0.79.3) (2021-03-20)

12
config/releases.exs

@ -22,7 +22,14 @@ public_url =
System.get_env("PUBLIC_URL") ||
raise """
environment variable PUBLIC_URL is missing.
For example: mirage.gigalixirapp.com
For example: beta.inhji.de
"""
upload_dir =
System.get_env("UPLOAD_DIR") ||
raise """
environment variable UPLOAD_DIR is missing.
For example: /opt/mirage/uploads
"""
config :mirage, Mirage.Repo,
@ -37,3 +44,6 @@ config :mirage, MirageWeb.Endpoint,
url: [host: public_url, port: 443],
secret_key_base: secret_key_base,
server: true
config :waffle,
storage_dir_prefix: upload_dir

2
mix.exs

@ -1,7 +1,7 @@
defmodule Mirage.MixProject do
use Mix.Project
@version "0.79.3"
@version "0.80.0"
def project do
[

Loading…
Cancel
Save