diff --git a/bin/complement b/bin/complement old mode 100644 new mode 100755 diff --git a/complement/Dockerfile b/complement/Dockerfile index 8f2a71e0..648708ef 100644 --- a/complement/Dockerfile +++ b/complement/Dockerfile @@ -26,14 +26,27 @@ RUN apt-get update \ && apt-get update \ && apt-get install -y caddy -COPY conduit-example.toml conduit.toml +COPY conduwuit-example.toml conduit.toml COPY complement/caddy.json caddy.json ENV SERVER_NAME=localhost ENV CONDUIT_CONFIG=/workdir/conduit.toml RUN sed -i "s/port = 6167/port = 8008/g" conduit.toml -RUN echo "log = \"warn,_=off,sled=off\"" >> conduit.toml +RUN sed -i "s/allow_registration = false/allow_registration = true/g" conduit.toml +RUN sed -i "s/registration_token/#registration_token/g" conduit.toml +RUN sed -i "s/allow_guest_registration = false/allow_guest_registration = true/g" conduit.toml +RUN sed -i "s/allow_public_room_directory_over_federation = false/allow_public_room_directory_over_federation = true/g" conduit.toml +RUN sed -i "s/allow_public_room_directory_without_auth = false/allow_public_room_directory_without_auth = true/g" conduit.toml +RUN sed -i "s/allow_device_name_federation = false/allow_device_name_federation = true/g" conduit.toml +RUN sed -i "/\"127.0.0.0/d" conduit.toml +RUN sed -i "/\"10.0.0.0/d" conduit.toml +RUN sed -i "/\"::1/d" conduit.toml +RUN echo "log = \"warn\"" >> conduit.toml +RUN echo 'yes_i_am_very_very_sure_i_want_an_open_registration_server_prone_to_abuse = true' >> conduit.toml +RUN echo 'allow_outgoing_presence = true' >> conduit.toml +RUN echo 'allow_incoming_presence = true' >> conduit.toml +RUN echo 'allow_local_presence = true' >> conduit.toml RUN sed -i "s/address = \"127.0.0.1\"/address = \"0.0.0.0\"/g" conduit.toml EXPOSE 8008 8448