default proxy in specific port

pull/473/head
OscarSotoSanchez 2020-05-08 16:45:11 +02:00
parent f5cfa00871
commit 4eeed8fefd
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,5 @@
server {
listen 80;
listen {http_port};
location /.well-known/acme-challenge/ {
root /var/www/certbot;

View File

@ -41,6 +41,7 @@ CERTIFICATES_CONF="${CERTIFICATES_FOLDER}/certificates.conf"
[ -z "${ALLOWED_ACCESS_TO_RESTAPI}" ] && export ALLOWED_ACCESS_TO_RESTAPI=all
# Start with default certbot conf
sed -i "s/{http_port}/${PROXY_HTTP_PORT}/" /etc/nginx/conf.d/default.conf
nginx -g "daemon on;"
# Show input enviroment variables