diff options
author | Frédéric Guillot <fred@kanboard.net> | 2019-02-27 15:13:49 -0800 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2019-02-27 17:50:18 -0800 |
commit | 6d2b2f4a793fe6f9321fa5ed164af1fd3520e01b (patch) | |
tree | e3eef95cd2979946e0f27ca9cbcc8ab57b061c3c /docker | |
parent | 4a400951226da20f05472504a5e992981298734e (diff) |
Simplify local Docker image build
Diffstat (limited to 'docker')
-rw-r--r-- | docker/etc/nginx/nginx.conf | 2 | ||||
-rwxr-xr-x | docker/usr/local/bin/entrypoint.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/docker/etc/nginx/nginx.conf b/docker/etc/nginx/nginx.conf index fcc9a9aa..df26ad46 100644 --- a/docker/etc/nginx/nginx.conf +++ b/docker/etc/nginx/nginx.conf @@ -23,7 +23,7 @@ http { server { listen 80; - listen 443 ssl; + listen 443 ssl http2; ssl_certificate /etc/nginx/ssl/kanboard.crt; ssl_certificate_key /etc/nginx/ssl/kanboard.key; server_name localhost; diff --git a/docker/usr/local/bin/entrypoint.sh b/docker/usr/local/bin/entrypoint.sh index 61ce9207..5618b4bc 100755 --- a/docker/usr/local/bin/entrypoint.sh +++ b/docker/usr/local/bin/entrypoint.sh @@ -1,6 +1,6 @@ #!/bin/bash -#generate a new self signed SSL certificate when none is provided in the volume +# Generate a new self signed SSL certificate when none is provided in the volume if [ ! -f /etc/nginx/ssl/kanboard.key ] || [ ! -f /etc/nginx/ssl/kanboard.crt ] then openssl req -x509 -nodes -newkey rsa:2048 -keyout /etc/nginx/ssl/kanboard.key -out /etc/nginx/ssl/kanboard.crt -subj "/C=GB/ST=London/L=London/O=Self Signed/OU=IT Department/CN=kanboard.org" |