Announce: Docker Image extremeshok/xmysql-https-auth
extremeshok opened this issue · 1 comments
Hi
I have created an advanced docker which addresses various feature requirements for production usage. It would be appreciated if you could add a link in your readme
Docker Hub: https://hub.docker.com/r/extremeshok/xmysql-https-auth/
Features:
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.
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
Authentication methods, set in docker-compose.yml, see docker-compose-sample.yml
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 in header (X-API-KEY)
API_KEY=asecurekey
http auth_basic
htpasswd encrypted password
API_HTTP_AUTH=user:encryptedpassword
plaintext password
API_HTTP_AUTH=user:{plain}password
IP allow
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
Heads up, pushed some fixes to our repo