Fix server block syntax in Nginx configuration in update.sh
This commit is contained in:
@@ -115,7 +115,10 @@ ensure_nginx_config_mount_source() {
|
|||||||
|
|
||||||
if [ ! -f "$config_path" ]; then
|
if [ ! -f "$config_path" ]; then
|
||||||
cat > "$config_path" <<'EOF'
|
cat > "$config_path" <<'EOF'
|
||||||
server {
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
server() {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name _;
|
server_name _;
|
||||||
return 301 https://$host$request_uri;
|
return 301 https://$host$request_uri;
|
||||||
|
|||||||
Reference in New Issue
Block a user