From 828a5d66c7f4eb77f508010027cec353b3a30d23 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sat, 14 Dec 2019 23:46:14 +0100 Subject: [PATCH] Extend using /etc/nginx/https.conf --- README.md | 10 ++++++++-- entrypoint.sh | 5 ++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index adfd8c7..95c25d5 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ reached from anywhere in the world. This container uses the domain **has-a.name**, which gives a name to every IPv6 address. -Checkout how +Read more about how [has-a.name](https://ungleich.ch/u/blog/has-a-name-for-every-ipv6-address/) works. ## How to use @@ -46,4 +46,10 @@ Welcome to 2a0a-e5c1-0111-0777-0000-0242-ac11-0004.has-a.name running with IPv6+ ## How to extend it -TBD +The http server part usually does not need to be modified, as it only +serves letsencrypt requests and redirects everything else to https. + +If you want to extend the https server, simply overwrite +**/etc/nginx/https.conf**. It is by default empty and only exists to +be overwritten. It is included in the https block and lets you define +proxy or other configurations that you need. diff --git a/entrypoint.sh b/entrypoint.sh index 80b5d72..42c5d70 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -54,10 +54,13 @@ server { root ${wwwroot}; - include /etc/nginx/conf.d/${dnsname}-*.conf; + include /etc/nginx/https.conf; } EOF +# create empty file - can be overriden by others +touch /etc/nginx/https.conf + echo Welcome to ${dnsname} running with IPv6+LetsEncrypt > ${wwwroot}/index.html # restart and run now with cert