Skip to content

xmysql with https and auth via apikey and/or htpasswd and/or ip

Notifications You must be signed in to change notification settings

extremeshok/docker-xmysql-https-auth

Repository files navigation

docker-xmysql-https-auth

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

Notes:

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. Reload nginx on /cert update

API_FILTERTABLES and API_IGNORETABLES

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

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

About

xmysql with https and auth via apikey and/or htpasswd and/or ip

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published