Skip to content

Production deployment setup for httpsms.voangory.com#4

Draft
Copilot wants to merge 9 commits intomainfrom
copilot/fix-sms-gateway-issues
Draft

Production deployment setup for httpsms.voangory.com#4
Copilot wants to merge 9 commits intomainfrom
copilot/fix-sms-gateway-issues

Conversation

Copy link
Copy Markdown

Copilot AI commented Dec 13, 2025

Prepares httpSMS for production deployment to httpsms.voangory.com with proper infrastructure, security hardening, and removal of hardcoded domain references.

Infrastructure

  • Nginx reverse proxy with SSL/TLS termination, rate limiting (10 req/s API, 30 req/s web), security headers (HSTS, CSP, X-Frame-Options)
  • Production docker-compose with health checks for all services, resource limits, and proper networking
  • Automated setup via setup.sh with password generation and SSL certificate guidance

Configuration

All hardcoded httpsms.com references replaced with APP_URL environment variable:

// Before
return message + " You need to grant the SMS permission to the httpSMS Android app https://httpsms.com/blog/..."

// After  
appURL := service.appURL
if appURL == "" {
    appURL = "https://httpsms.com"
}
return fmt.Sprintf("%s You need to grant the SMS permission to the httpSMS Android app %s/blog/...", message, appURL)

Affected services: message_service, webhook_service, discord_service, billing_service, swagger routes.

Bug Fixes

  • PostgreSQL healthcheck: pg_isready, -Upg_isready -U
  • Added missing Redis healthcheck
  • Fixed potential panic in URL domain extraction (empty split array)
  • Dockerfile now includes ca-certificates for HTTPS

Security

  • Removed default passwords from production config (now requires explicit POSTGRES_PASSWORD, REDIS_PASSWORD)
  • Added /health endpoint for monitoring
  • Restart policy: on-failureunless-stopped

Documentation

  • DEPLOYMENT.md - Complete deployment guide with Firebase/SMTP setup, SSL configuration, troubleshooting
  • QUICKSTART.md - Command reference for docker-compose, database ops, SSL management
  • Environment templates: api/.env.voangory, web/.env.voangory, .env.example

Deployment domains:

  • Web: https://httpsms.voangory.com
  • API: https://api.httpsms.voangory.com
Original prompt

This application is a service that lets you use your Android phone as an SMS Gateway to send and receive SMS messages. You make a request to a simple HTTP API and it triggers your Android phone to send an SMS. SMS messages received on your android phone can also be forwarded to your webhook endpoint. The Android application is in Android directory and the web application is in web and api directory. I want to deploy the app to the domain httpsms.voangory.com.
make it work as it should work,fix any bug, make it respect good practice. if needed you can modify everything


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 8 commits December 13, 2025 08:08
…rse proxy, health checks, and production docker-compose

Co-authored-by: TahiryRa <43411767+TahiryRa@users.noreply.github.com>
Co-authored-by: TahiryRa <43411767+TahiryRa@users.noreply.github.com>
…e handling

Co-authored-by: TahiryRa <43411767+TahiryRa@users.noreply.github.com>
…l panic

Co-authored-by: TahiryRa <43411767+TahiryRa@users.noreply.github.com>
Co-authored-by: TahiryRa <43411767+TahiryRa@users.noreply.github.com>
Co-authored-by: TahiryRa <43411767+TahiryRa@users.noreply.github.com>
Co-authored-by: TahiryRa <43411767+TahiryRa@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix issues and improve SMS gateway functionality Production deployment setup for httpsms.voangory.com Dec 13, 2025
Copilot AI requested a review from TahiryRa December 13, 2025 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants