Skip to content

Commit

Permalink
removing extra nginx config, might need it tho
Browse files Browse the repository at this point in the history
  • Loading branch information
mfreeman451 committed Mar 1, 2025
1 parent 27fe3a5 commit aa92943
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions scripts/setup-deb-cloud.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,37 +50,6 @@ EOF
# Create conffiles to mark configuration files
cat > "${PKG_ROOT}/DEBIAN/conffiles" << EOF
/etc/serviceradar/cloud.json
/etc/nginx/conf.d/serviceradar-cloud.conf
EOF

# Create nginx configuration
cat > "${PKG_ROOT}/etc/nginx/conf.d/serviceradar-cloud.conf" << EOF
# ServiceRadar Cloud API - Nginx Configuration
# This is for API-only access. If you have the web UI installed,
# its configuration will take precedence.
server {
listen 80;
server_name _; # Catch-all server name (use your domain if you have one)
access_log /var/log/nginx/serviceradar-cloud.access.log;
error_log /var/log/nginx/serviceradar-cloud.error.log;
# API endpoints
location /api/ {
proxy_pass http://localhost:8090;
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;
}
# Root redirect to API documentation or status page
location = / {
return 200 'ServiceRadar API is running. Install serviceradar-web package for the UI.';
add_header Content-Type text/plain;
}
}
EOF

# Create systemd service file
Expand Down

0 comments on commit aa92943

Please sign in to comment.