We are going to install mender.io via docker and the web port is 10443,
Proxying doesn’t work.
Download the docker repository in /opt/mender:
mkdir /opt/mender
cd /opt/mender
git clone -b 3.1.0 https://github.com/mendersoftware/integration mender-server
cd mender-server/production/config
cp prod.yml.template prod.yml
sed -i ‘s/443:443/10443:443/’ prod.yml
cd ..
./run pull
API_GATEWAY_DOMAIN_NAME=”mender.rsquare.org”
STORAGE_PROXY_DOMAIN_NAME=”${API_GATEWAY_DOMAIN_NAME}”
CERT_CN=$API_GATEWAY_DOMAIN_NAME CERT_SAN=”DNS:${API_GATEWAY_DOMAIN_NAME},DNS:*.${STORAGE_PROXY_DOMAIN_NAME}” ../keygen
docker volume create –name=mender-artifacts
docker volume create –name=mender-db
apt install pwgen
MINIO_SECRET_KEY_GENERATED=`pwgen 16 1`
sed -i.bak “s/MINIO_ACCESS_KEY:.*/MINIO_ACCESS_KEY: mender-deployments/g” config/prod.yml
sed -i.bak “s/MINIO_SECRET_KEY:.*/MINIO_SECRET_KEY: $MINIO_SECRET_KEY_GENERATED/g” config/prod.yml
sed -i.bak “s/DEPLOYMENTS_AWS_AUTH_KEY:./DEPLOYMENTS_AWS_AUTH_KEY: mender-deployments/g” config/prod.yml
sed -i.bak “s/DEPLOYMENTS_AWS_AUTH_SECRET:./DEPLOYMENTS_AWS_AUTH_SECRET: $MINIO_SECRET_KEY_GENERATED/g” config/prod.yml
sed -i.bak “s/https:\/\/set-my-alias-here.com/https:\/\/$STORAGE_PROXY_DOMAIN_NAME/g” config/prod.yml
sed -i.bak “s/set-my-alias-here.com/$STORAGE_PROXY_DOMAIN_NAME/g” config/prod.yml
sed -i.bak “s/my-gateway-dns-name/$API_GATEWAY_DOMAIN_NAME/g” config/prod.yml
./run exec mender-useradm /usr/bin/useradm create-user –username=myname@example.com –password=mypassword
In ISPconfig add a default website to your dns name. for example mender.rsquare.org
Enable letsencrypt
Proxying doesn’t work in the oos version, so we need to open a firewall port 10443
rm keys-generated/cert/cert.crt
ln -s /etc/letsencrypt/live/mender.rsquare.org/fullchain.pem keys-generated/cert/cert.crt
rm keys-generated/cert/private.key
ln -s /etc/letsencrypt/live/mender.rsquare.org/privkey.pem keys-generated/cert/private.key
./run up -d
Now go to https://mender.rsquare.org:10443