From b09546e12ad828fd4588b717a25e057f6f9dc536 Mon Sep 17 00:00:00 2001 From: sunstep <73174517+sunstep@users.noreply.github.com> Date: Tue, 24 Sep 2024 12:04:26 +0200 Subject: [PATCH 1/2] Make code snippets have a color --- docs/how_to_setup_reverse_proxy.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/how_to_setup_reverse_proxy.md b/docs/how_to_setup_reverse_proxy.md index b4e81a0f..bfcf257c 100644 --- a/docs/how_to_setup_reverse_proxy.md +++ b/docs/how_to_setup_reverse_proxy.md @@ -24,7 +24,7 @@ Now that the app works with a domain name, the server needs to be set up to use Below are examples of reverse proxy configurations. ### Nginx -``` +```nginx server { listen 80; @@ -58,7 +58,7 @@ sudo a2enmod headers With the above commands entered, the configuration below should work properly. -``` +```apache ServerName example.com @@ -95,7 +95,7 @@ docker network create dawarich ``` Adjust the following part of your Dawarich docker-compose.yaml, so that the web app is exposed to your new network and the backend Dawarich network: -``` +```yaml networks: dawarich: frontend: @@ -105,7 +105,7 @@ services: ``` Lastly, edit your Caddy config as needed: -``` +```caddy { http_port 80 https_port 443 From 8911ad4d9cef2c025a8be2f3f4fa121467b000c2 Mon Sep 17 00:00:00 2001 From: sunstep <73174517+sunstep@users.noreply.github.com> Date: Tue, 24 Sep 2024 12:37:59 +0200 Subject: [PATCH 2/2] Update guide on APPLICATION_HOST(S) --- docs/how_to_setup_reverse_proxy.md | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/docs/how_to_setup_reverse_proxy.md b/docs/how_to_setup_reverse_proxy.md index bfcf257c..c6d54029 100644 --- a/docs/how_to_setup_reverse_proxy.md +++ b/docs/how_to_setup_reverse_proxy.md @@ -8,11 +8,26 @@ Make sure to exclude "http://" or "https://" from the environment variable. ⚠ At the time of writing this, the way to set the environment variable is to edit the docker-compose.yml file. Find all APPLICATION_HOSTS entries in the docker-compose.yml file and make sure to include your domain name. Example: ```yaml - dawarich_app: +dawarich_app: image: freikin/dawarich:latest container_name: dawarich_app + ... environment: - APPLICATION_HOSTS: "yourhost.com,www.yourhost.com,127.0.0.1" + ... + APPLICATION_HOST: "yourhost.com" <-- Edit this + APPLICATION_HOSTS: "yourhost.com,www.yourhost.com,127.0.0.1" <-- Edit this +``` + +```yaml +dawarich_sidekiq: + image: freikin/dawarich:latest + container_name: dawarich_sidekiq + ... + environment: + ... + APPLICATION_HOST: "yourhost.com" <-- Edit this + APPLICATION_HOSTS: "yourhost.com,www.yourhost.com,127.0.0.1" <-- Edit this + ... ``` For a Synology install, refer to **[Synology Install Tutorial](How_to_install_Dawarich_on_Synology.md)**. In this page, it is explained how to set the APPLICATION_HOSTS environment variable.