File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 3030fi
3131
3232echo " Checking if https is required."
33- if [ -f /etc/nginx/conf .d/default .conf ]; then
33+ if [ -f /etc/nginx/http .d/panel .conf ]; then
3434 echo " Using nginx config already in place."
3535 if [ $LE_EMAIL ]; then
3636 echo " Checking for cert update"
4242 echo " Checking if letsencrypt email is set."
4343 if [ -z $LE_EMAIL ]; then
4444 echo " No letsencrypt email is set using http config."
45- cp .github/docker/default.conf /etc/nginx/conf .d/default .conf
45+ cp .github/docker/default.conf /etc/nginx/http .d/panel .conf
4646 else
4747 echo " writing ssl config"
48- cp .github/docker/default_ssl.conf /etc/nginx/conf .d/default .conf
48+ cp .github/docker/default_ssl.conf /etc/nginx/http .d/panel .conf
4949 echo " updating ssl config for domain"
50- sed -i " s|<domain>|$( echo $APP_URL | sed ' s~http[s]*://~~g' ) |g" /etc/nginx/conf .d/default .conf
50+ sed -i " s|<domain>|$( echo $APP_URL | sed ' s~http[s]*://~~g' ) |g" /etc/nginx/http .d/panel .conf
5151 echo " generating certs"
5252 certbot certonly -d $( echo $APP_URL | sed ' s~http[s]*://~~g' ) --standalone -m $LE_EMAIL --agree-tos -n
5353 fi
54+ echo " Removing the default nginx config"
55+ rm -rf /etc/nginx/http.d/default.conf
5456fi
5557
5658# # check for DB up before starting the panel
You can’t perform that action at this time.
0 commit comments