Selaa lähdekoodia

configure postsrsd to listen on all ipv4 interfaces

Fabian Peter Hammerle 1 päivä sitten
vanhempi
commit
c11717ae30
2 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 1 0
      CHANGELOG.md
  2. 2 0
      Dockerfile

+ 1 - 0
CHANGELOG.md

@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 ### Changed
 - expose tcp port 10003 instead of 10001 & 10002
   (postsrsd v2 uses "socketmap:" instead of "tcp:" tables)
+- configure postsrsd to listen on all ipv4 interfaces (default: loopback only)
 - umask `0077` to initialize secrets file with minimal permissions
 
 ### Removed

+ 2 - 0
Dockerfile

@@ -15,6 +15,8 @@ RUN adduser -S postsrsd \
     && apk add --no-cache postsrsd=$POSTSRSD_PACKAGE_VERSION \
     && sed -i 's/^\(\(unprivileged-user\|chroot-dir\) = "\).*"/\1"/' \
          /etc/postsrsd/postsrsd.conf \
+    && sed -i 's/^\(socketmap = inet:\)localhost\(\:10003\)$/\10.0.0.0\2/' \
+         /etc/postsrsd/postsrsd.conf \
     && mkdir --mode 700 "${POSTSRSD_SECRET_DIR_PATH}" \
     && chown postsrsd "${POSTSRSD_SECRET_DIR_PATH}" \
     && sed -i 's#^\(secrets-file = "\).*#\1'"${POSTSRSD_SECRET_PATH}\"#" \