change cert mounting points

This commit is contained in:
André Menrath 2023-12-15 15:05:37 +01:00
parent ad7e2b8183
commit fb5a72e3f4
3 changed files with 4 additions and 4 deletions

View file

@ -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 <container_name>` or `make logs`. 8. Get the logs via `docker-compose logs -f <container_name>` or `make logs`.

View file

@ -42,8 +42,7 @@ services:
volumes: volumes:
- "./mobilizon/mobilizon:/app" - "./mobilizon/mobilizon:/app"
- "./mobilizon/dev.exs:/app/config/dev.exs" - "./mobilizon/dev.exs:/app/config/dev.exs"
- "./certs/lan-key.pem:/app/priv/server.key:ro" - "./certs/:/app/priv/certs/:ro"
- "./certs/lan.pem:/app/priv/server.pem:ro"
- "/etc/ssl/certs/ca-certificates.crt:/app/priv/ca-bundle.crt:ro" - "/etc/ssl/certs/ca-certificates.crt:/app/priv/ca-bundle.crt:ro"
depends_on: depends_on:
- postgres - postgres

View file

@ -3,8 +3,8 @@ import Config
config :mobilizon, Mobilizon.Web.Endpoint, config :mobilizon, Mobilizon.Web.Endpoint,
https: [ https: [
port: String.to_integer(System.get_env("MOBILIZON_INSTANCE_HOST_PORT", "4000")), port: String.to_integer(System.get_env("MOBILIZON_INSTANCE_HOST_PORT", "4000")),
keyfile: "priv/server.key", keyfile: "priv/certs/lan-key.pem",
certfile: "priv/server.pem" certfile: "priv/certs/lan.pem"
], ],
url: [ url: [
host: System.get_env("MOBILIZON_INSTANCE_HOST", "mobilizon.local"), host: System.get_env("MOBILIZON_INSTANCE_HOST", "mobilizon.local"),