From 5eea2d5c46ff13255d37ac19bc907081b876146d Mon Sep 17 00:00:00 2001 From: Marco Ochse Date: Tue, 23 Apr 2024 15:28:54 +0200 Subject: [PATCH] Updated Reconfigure ews.cfg (markdown) --- Reconfigure-ews.cfg.md | 32 +++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/Reconfigure-ews.cfg.md b/Reconfigure-ews.cfg.md index c972288..f181548 100644 --- a/Reconfigure-ews.cfg.md +++ b/Reconfigure-ews.cfg.md @@ -15,30 +15,40 @@ systemctl stop tpot ### 3. Adjust `tpot.yml`: ``` -vi /opt/tpot/etc/tpot.yml +vi $HOME/tpotce/docker-compose.yml -[...] # Ewsposter service ewsposter: container_name: ewsposter restart: always + depends_on: + tpotinit: + condition: service_healthy networks: - ewsposter_local - env_file: - - /opt/tpot/etc/compose/elk_environment - image: "dtagdevsec/ewsposter:1710" + environment: + - EWS_HPFEEDS_ENABLE=false + - EWS_HPFEEDS_HOST=host + - EWS_HPFEEDS_PORT=port + - EWS_HPFEEDS_CHANNELS=channels + - EWS_HPFEEDS_IDENT=user + - EWS_HPFEEDS_SECRET=secret + - EWS_HPFEEDS_TLSCERT=false + - EWS_HPFEEDS_FORMAT=json + image: ${TPOT_REPO}/ewsposter:${TPOT_VERSION} + pull_policy: ${TPOT_PULL_POLICY} volumes: - - /data:/data - - /data/ews/conf/ews.ip:/opt/ewsposter/ews.ip - - /data/ews/conf/ews.cfg:/opt/ewsposter/ews.cfg + - ${TPOT_DATA_PATH}:/data + - ${TPOT_DATA_PATH}/ews/conf/ews.ip:/opt/ewsposter/ews.ip + - ${TPOT_DATA_PATH}/ews/conf/ews.cfg:/opt/ewsposter/ews.cfg [...] ``` ### 4. Modify `ews.cfg` according to your own taste or as instructed and set correct permissions: ``` -vi /data/ews/conf/ews.cfg -chmod 770 /data/ews/conf/ews.cfg -chown tpot:tpot /data/ews/conf/ews.cfg +vi $HOME/tpotce/data/ews/conf/ews.cfg +chmod 770 $HOME/tpotce/data/ews/conf/ews.cfg +chown tpot:tpot $HOME/tpotce/data/ews/conf/ews.cfg ``` ### 5. Start T-Pot service