Sign inSign up

tmunzer/mist_psk_custom

By tmunzer

•Updated almost 5 years ago

Image
0

1.0K

tmunzer/mist_psk_custom repository overview

⁠Mist Psk Web UI - Custom

This application provides a single page app to manage, create, edit and delete Personal PSKs from Mist Cloud. It is required to have a Mist account to get access to this app.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

⁠Features

  • Configured for a single Org
  • Edit Org or Site PPSK
  • Create new Org or Site PPSK
  • Delete Org or Site PPSK
  • Display Configuration QRCode for smartphone
  • Send email to user with SSID and PPSK information, and QRCode for smartphone configuration

⁠Installation

This is a demo application using the Mist APIs.

You can run it as a strandalone Python application, or deploy it as a Docker container.

Note: The application is not providing secured HTTPS connections. It is highly recommended to deploy it behind a reverse proxy providing HTTPS encryption.

⁠Configuration

You can configure the settings through a configuration file or through Environment Variables.

⁠Configuration File

A configuration example with explanation is avaiable in the django/backend/config_example.py. This file must be edited and renamed config.py.

⁠Environment Variables
Variable NameTypeDefault ValueComment
MIST_HOSTStringapi.mist.comMIST API HOST (api.mist.com, api.eu.mist.com, ...)
MIST_ORG_IDStringThe Mist org ID
MIST_SMTP_ENABLEDBooleanFalseWhether or not to allow to send PSK by email
MIST_SMTP_HOSTStringNoneSMTP Server IP or hostname
MIST_SMTP_PORTNumber587SMTP Server Port
MIST_SMTP_SSLBooleanTrueWhether or not to use SSL to talk with the SMTP Server
MIST_SMTP_USERStringNoneIf SMTP server requires authentication, the username to use
MIST_SMTP_PASSWORDStringNoneIf SMTP server requires authentication, the password to use
MIST_SMTP_FROM_NAMEStringWi-Fi AccessEmail sender name
MIST_SMTP_FROM_EMAILStringNoneSender email address
MIST_SMTP_LOGO_URLStringhttps://cdn.mist.com/wp-content/uploads/logo.png⁠Logo displayed in the email header
MIST_SMTP_QRCODEBooleanTrueWhether or not add an autoconfiguration QRCode for smartphones to the email
MIST_PSK_DEFAULT_EXPIRE_TIMENumber0Default Expire time for PSK creation, in hours. 0 to disable
MIST_PSK_LENGTHNumber12Size for "renewable" PSK length (must be between 8 and 63
DJANGO_DEBUGNumber0Whether or not Django starts in Debug Mode (0=Production, 1=Debug)
DJANGO_ALLOWED_HOSTSStringFQDN on which Django is listening. Only used in Production Mode

Tag summary

Content type

Image

Digest

Size

355.8 MB

Last updated

almost 5 years ago

docker pull tmunzer/mist_psk_custom