https://hub.docker.com/r/extremeshok/xmysql-https-auth
xmysql with https and auth via apikey and/or htpasswd and/or ip
View docker-compose-sample.yml in the source repository for usage
xmysql will wait for MySQL to warm-up, checks every 2 seconds httpS only (port 443), http (port 80) will redirect all requests to httpS A self signed certificate will be generated if /certs/cert.pem or /certs/${API_HOSTNAME}/fullchain.pem is not found A 4096bit DHPARAM will be generated if no /certs/dhparam.pem exists, this will take a few minutes.
If API_FILTERTABLES and API_IGNORETABLES are specified, API_FILTERTABLES will overwrite API_IGNORETABLES
API_FILTERTABLES This is a comma delimitated list of tables to include for the api, all tables NOT listed will be ignored API_FILTERTABLES=table1,table3
API_IGNORETABLES This is a comma delimitated list of tables to exclude for the api, all tables listed will be ignored API_IGNORETABLES=table2,table4
API_KEY, API_HTTP_AUTH and API_ALLOW_IP are all optional, you may enable 1 or more. If API_KEY and/or API_HTTP_AUTH and/or API_ALLOW_IP are enabled, all will be required for a successful auth.
API_KEY=asecurekey
htpasswd encrypted password API_HTTP_AUTH=user:encryptedpassword plaintext password API_HTTP_AUTH=user:{plain}password
ip with netmask API_ALLOW_IP=11.22.33.0/24 ip without netmask API_ALLOW_IP=11.22.33.44 multiple ip addresses API_ALLOW_IP=11.22.33.44,11.22.33.0/24