-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSL everywhere #403
SSL everywhere #403
Conversation
This branch is currently running wis2box-zambia for testing: mosquitto_sub -d -L mqtts://everyone:[email protected]/origin/# |
@@ -1,7 +1,7 @@ | |||
services: | |||
web-proxy: | |||
ports: | |||
- 8999:80 | |||
- 80:80 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we move to port 80 by default, or leave this to be managed by the release process (which changes ports to port 80)?
docker-compose.yml
Outdated
@@ -9,7 +9,7 @@ services: | |||
depends_on: | |||
- wis2box-ui | |||
volumes: | |||
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro | |||
- ./nginx/nginx-nossl.conf:/etc/nginx/conf.d/default.conf |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggest to rename files of type -nossl
without the suffix; example:
/nginx/nginx.conf
(no SSL)/nginx/nginx-ssl.conf
(SSL)
|
||
.. code-block:: bash | ||
|
||
WIS2BOX_SSL_CERT=/etc/letsencrypt/live/example.wis2box.io/fullchain.pem |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra space for docs
Changes:
I thought we agreed to use port 80 by default for override to reduce confusion within documentation ? |
@maaikelimper can you rebase against latest main (changes since last update)? |
ssl option in wis2box-ctl env-variables to share key and cert location initial docs mosquitto and nginx ssl/nossl http://localhost:8999 to http://localhost
5176663
to
fb1e252
Compare
Here's my first attempt at implementing SSL everywhere.
Basically I add add additional docker-compose-file to allow a user to share the SSL-cert and SSL-key with the nginx and mosquitto container.
To enable HTTPS and MQTTS on your wis2box run wis2box with the option '--ssl':
Which requires additional environment variables in dev.env:
Implements #140