Skip to content

Commit

Permalink
Remove TLS for mosquitto broker
Browse files Browse the repository at this point in the history
  • Loading branch information
aeshub committed Sep 22, 2022
1 parent 5651fd3 commit 25d24db
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish_docker_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
TLS_SERVER_KEY=${{ secrets.TLS_SERVER_KEY }}
#build-args: |
# TLS_SERVER_KEY=${{ secrets.TLS_SERVER_KEY }}

build-and-push-backend:
runs-on: ubuntu-latest
Expand Down
14 changes: 7 additions & 7 deletions broker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ FROM eclipse-mosquitto:latest

COPY mosquitto/config/ mosquitto/config/

ARG TLS_SERVER_KEY
#ARG TLS_SERVER_KEY

RUN start='-----BEGIN PRIVATE KEY-----' && \
decoded_key=$(echo $TLS_SERVER_KEY|base64 -d) && \
end='-----END PRIVATE KEY-----'&& \
echo ${start} > mosquitto/config/certs/server-key.pem && \
echo ${decoded_key} >> mosquitto/config/certs/server-key.pem && \
echo ${end} >> mosquitto/config/certs/server-key.pem
# RUN start='-----BEGIN PRIVATE KEY-----' && \
# decoded_key=$(echo $TLS_SERVER_KEY|base64 -d) && \
# end='-----END PRIVATE KEY-----'&& \
# echo ${start} > mosquitto/config/certs/server-key.pem && \
# echo ${decoded_key} >> mosquitto/config/certs/server-key.pem && \
# echo ${end} >> mosquitto/config/certs/server-key.pem

EXPOSE 1883

Expand Down

0 comments on commit 25d24db

Please sign in to comment.