mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +02:00
Update
This commit is contained in:
parent
8e1a149864
commit
3aac53b07a
3 changed files with 6 additions and 4 deletions
|
@ -61,7 +61,9 @@ cp ${TLS_CERTIFICATE_KEY} /etc/letsencrypt/live/localhost/privkey.pem
|
|||
echo "lets encrypt nginx ${SERVER_NAME}"
|
||||
mv /usr/sbin/nginx /usr/sbin/nginx.old && cp /usr/local/nginx/sbin/nginx /usr/sbin/nginx
|
||||
mv /etc/nginx/nginx.conf /etc/nginx/nginx.conf.old && cp /usr/local/nginx/conf/nginx.conf /etc/nginx/nginx.conf
|
||||
certbot --nginx --non-interactive --agree-tos --nginx-server-root /usr/local/nginx/conf --no-redirect --register-unsafely-without-email --keep-until-expiring -d $SERVER_NAME
|
||||
if [ "_${CREATE_TLS_CERTIFICATE}_" == "_yes_" ]; then
|
||||
certbot --nginx --non-interactive --agree-tos --nginx-server-root /usr/local/nginx/conf --no-redirect --register-unsafely-without-email --keep-until-expiring -d $SERVER_NAME
|
||||
fi
|
||||
sed -i 's/listen 443 ssl/listen 8443 ssl/g' /usr/local/nginx/conf/nginx.conf
|
||||
|
||||
echo "crontab starting"
|
||||
|
|
|
@ -177,8 +177,8 @@ http {
|
|||
# fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
|
||||
#}
|
||||
listen 8443 ssl;
|
||||
ssl_certificate /etc/apache2/ssl/localhost.crt;
|
||||
ssl_certificate_key /etc/apache2/ssl/localhost.key;
|
||||
ssl_certificate /etc/letsencrypt/live/localhost/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/localhost/privkey.pem;
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ services:
|
|||
ENABLE_PHPMYADMIN: ${ENABLE_PHPMYADMIN}
|
||||
PHPMYADMIN_PORT: ${PHPMYADMIN_PORT}
|
||||
PHPMYADMIN_ENCODER_PORT: ${PHPMYADMIN_ENCODER_PORT}
|
||||
CREATE_TLS_CERTIFICATE: ${CREATE_TLS_CERTIFICATE}
|
||||
CREATE_TLS_CERTIFICATE: "${CREATE_TLS_CERTIFICATE:-yes}"
|
||||
TLS_CERTIFICATE_FILE: ${TLS_CERTIFICATE_FILE}
|
||||
TLS_CERTIFICATE_KEY: ${TLS_CERTIFICATE_KEY}
|
||||
CONTACT_EMAIL: ${CONTACT_EMAIL}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue