From fb5a72e3f4f9cbf3996c743e15b62002c4b4abe8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= Date: Fri, 15 Dec 2023 15:05:37 +0100 Subject: [PATCH] change cert mounting points --- README.md | 1 + docker-compose.yml | 3 +-- mobilizon/dev.exs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e4050e2..2dbfe65 100644 --- a/README.md +++ b/README.md @@ -32,3 +32,4 @@ docker-compose exec mobilizon mix mobilizon.users.new "your@email.com" --admin - ``` 8. Get the logs via `docker-compose logs -f ` or `make logs`. + diff --git a/docker-compose.yml b/docker-compose.yml index dc5225b..aecb304 100755 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -42,8 +42,7 @@ services: volumes: - "./mobilizon/mobilizon:/app" - "./mobilizon/dev.exs:/app/config/dev.exs" - - "./certs/lan-key.pem:/app/priv/server.key:ro" - - "./certs/lan.pem:/app/priv/server.pem:ro" + - "./certs/:/app/priv/certs/:ro" - "/etc/ssl/certs/ca-certificates.crt:/app/priv/ca-bundle.crt:ro" depends_on: - postgres diff --git a/mobilizon/dev.exs b/mobilizon/dev.exs index cbf26bd..ad4b47a 100644 --- a/mobilizon/dev.exs +++ b/mobilizon/dev.exs @@ -3,8 +3,8 @@ import Config config :mobilizon, Mobilizon.Web.Endpoint, https: [ port: String.to_integer(System.get_env("MOBILIZON_INSTANCE_HOST_PORT", "4000")), - keyfile: "priv/server.key", - certfile: "priv/server.pem" + keyfile: "priv/certs/lan-key.pem", + certfile: "priv/certs/lan.pem" ], url: [ host: System.get_env("MOBILIZON_INSTANCE_HOST", "mobilizon.local"),