Fixed replacing of DOMAIN_NAME in userdata.sh
All checks were successful
AWS Deploy on Push / build (push) Successful in 4m18s

This commit is contained in:
2025-05-20 14:11:03 -05:00
parent 732667cf64
commit 37be1f3f91

View File

@@ -45,11 +45,11 @@ acme.sh --install-cert -d ${DOMAIN_NAME} -d *.${DOMAIN_NAME} \
--reloadcmd "service nginx force-reload"
# Create nginx config
cat << 'EOF' > /etc/nginx/conf.d/iptvUpdater.conf
cat << EOF > /etc/nginx/conf.d/iptvUpdater.conf
server {
listen 80;
server_name ${DOMAIN_NAME} *.${DOMAIN_NAME};
return 301 https://$host$request_uri;
return 301 https://\$host\$request_uri;
}
server {
@@ -61,10 +61,10 @@ server {
location / {
proxy_pass http://127.0.0.1:8000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host \$host;
proxy_set_header X-Real-IP \$remote_addr;
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto \$scheme;
}
}
EOF