forked from GNUsocial/gnu-social
[TOOLS][SSL] Added bin/boostrap_certificates.sh, allowing for easy configuration of SSL certificates with Let's Encrypt
This commit is contained in:
16
docker/bootstrap/Dockerfile
Normal file
16
docker/bootstrap/Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
FROM nginx:alpine
|
||||
|
||||
RUN echo "Installing bootstrap utils"
|
||||
|
||||
RUN apk add curl certbot openssl > /dev/null
|
||||
|
||||
RUN echo ' \
|
||||
server { \
|
||||
listen [::]:80; \
|
||||
listen 80; \
|
||||
server_name %hostname%; \
|
||||
location /.well-known/acme-challenge/ { \
|
||||
root /var/www/certbot; \
|
||||
} \
|
||||
} \
|
||||
' > /etc/nginx/conf.d/challenge.conf
|
Reference in New Issue
Block a user