Skip to content

Reconfigure ews.cfg

Marco Ochse edited this page Apr 23, 2024 · 3 revisions

Reconfigure ews.cfg

1. Extract ews.cfg from running container:

docker exec -it ewsposter ash
cd /opt/ewsposter/
cp ews.cfg /data/ews/conf/
exit

2. Stop T-Pot service

systemctl stop tpot

3. Adjust 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
    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:
     - ${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 $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

systemctl start tpot