Skip to content

MarcoPoloResearchLab/RSVP

Repository files navigation

RSVP

RSVP is an events invitation platform that relies on physical QR Codes and allows printing, sending and tracking invitations to events.

SSL Certificate Setup

This app supports HTTPS (TLS) with certificates for both local development and production.

Local Development (localhost)

For local testing with trusted certificates, use mkcert.

Install mkcert:

brew install mkcert
mkcert -install

Generate certificates:

mkcert localhost 127.0.0.1 ::1
certs/localhost.pem
certs/localhost-key.pem

Set environment variables:

export TLS_CERT_PATH=certs/localhost.pem
export TLS_KEY_PATH=certs/localhost-key.pem

Production (public domain) For production deployments using a real domain (rsvp.mprlab.com), use Let's Encrypt.

Steps: On your Mac, install Certbot:

brew install certbot

Obtain a certificate via DNS challenge:

sudo certbot certonly --manual --preferred-challenges dns -d rsvp.mprlab.com

After success, certificates are stored in:

/etc/letsencrypt/live/mywebsite.com/fullchain.pem
/etc/letsencrypt/live/mywebsite.com/privkey.pem

Copy the certificates to the production server:

scp /etc/letsencrypt/live/mywebsite.com/fullchain.pem user@server:/opt/myapp/certs/fullchain.pem
scp /etc/letsencrypt/live/mywebsite.com/privkey.pem user@server:/opt/myapp/certs/privkey.pem

On the production server, set environment variables:

export TLS_CERT_PATH=/opt/myapp/certs/fullchain.pem
export TLS_KEY_PATH=/opt/myapp/certs/privkey.pem

About

A simple web application for QR RSVP tracking

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages