Skip to content

Feature/ssl certbot for new URL#7

Merged
haphantran merged 2 commits into
mainfrom
feature/ssl-certbot
Apr 12, 2026
Merged

Feature/ssl certbot for new URL#7
haphantran merged 2 commits into
mainfrom
feature/ssl-certbot

Conversation

@haphantran
Copy link
Copy Markdown
Collaborator

Feature/ssl certbot for new URL

- Add certbot sidecar container with auto-renewal to docker-compose.prod.yml
- Update nginx to redirect HTTP to HTTPS with ACME challenge support
- Expose ports 80 and 443, update CORS and APP_URL to https://micss-lab.be
- Health check workflow now uses vars.APP_URL instead of hardcoded domain
- Add init-letsencrypt.sh bootstrap script for first-time cert setup
Copilot AI review requested due to automatic review settings April 12, 2026 21:12
@haphantran haphantran merged commit c482093 into main Apr 12, 2026
5 checks passed
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates production/public URL references to point to the new micss-lab.be domain.

Changes:

  • Update README live demo link to the new domain.
  • Update production Docker Compose backend CORS_ORIGIN and default APP_URL.
  • Update the scheduled GitHub Actions health check to use an Actions variable for the base URL.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
README.md Updates the published “Live demo” URL.
docker-compose.prod.yml Updates backend env defaults/origins for the new production URL.
.github/workflows/health-check.yml Switches health check target from a hardcoded URL to ${{ vars.APP_URL }}.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 21 to 23

if response=$(curl -sf --max-time 30 https://spatialdsl.tmusml.cloud/api/health); then
if response=$(curl -sf --max-time 30 ${{ vars.APP_URL }}/api/health); then
echo "$response"
Copy link

Copilot AI Apr 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The workflow now depends on the repository/org Actions variable APP_URL (vars.APP_URL). If it isn’t defined, this expression resolves to an empty string and curl will run against /api/health, causing the job to fail with an invalid/missing URL. Consider providing a safe default in the expression (or setting an env: APP_URL: ${{ vars.APP_URL || 'https://micss-lab.be' }} and using $APP_URL), and quote the URL to avoid shell word-splitting.

Copilot uses AI. Check for mistakes.
Comment thread docker-compose.prod.yml
Comment on lines 28 to 32
DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}?schema=public
PORT: 3001
NODE_ENV: production
CORS_ORIGIN: https://spatialdsl.tmusml.cloud
CORS_ORIGIN: https://micss-lab.be
MAX_FILE_SIZE: 52428800
Copy link

Copilot AI Apr 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR title/description mention "ssl certbot", but the changes in this PR only update the public URL references (README, compose env vars, health check). Either update the PR title/description to match the actual scope, or include the missing certbot-related configuration changes if they were intended.

Copilot uses AI. Check for mistakes.
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.

2 participants