Documentation

Domain, SSL & Email

Three finishing touches that make your marketplace trustworthy: your own address, the padlock, and working email.

On this page

Pointing your domain

  1. In your domain registrar (Namecheap, GoDaddy, Cloudflare…), open DNS settings.
  2. Add an A record: host @, value = your server's IP.
  3. Add another for www (A record or CNAME to the root).
  4. Wait for propagation (minutes to a few hours). Check with ping YOUR_DOMAIN.com — it should show your server IP.
  5. Update APP_URL and NEXT_PUBLIC_SITE_URL in the server's .env to https://YOUR_DOMAIN.com and restart the app (pm2 restart salex).
Using Cloudflare proxying (orange cloud) works — the origin still needs the Nginx setup from Server Deployment. Set SSL mode “Full”.

HTTPS (SSL certificate)

Logins and payments require HTTPS. If you followed the deployment guide, Certbot already issued a free Let's Encrypt certificate. Management commands:

certbot certificates              # list certificates + expiry
certbot renew --dry-run           # verify auto-renewal works
systemctl status certbot.timer    # confirm the renewal timer is active

✓ Success: browser shows the padlock; http:// redirects to https://.

Payment providers reject non-HTTPS webhooks. Do not take payments live before the padlock is on.

Email that actually arrives

SaleX sends order confirmations, password resets, and vendor notifications over SMTP. Two options:

Option A — SMTP in .env

SMTP_HOST="smtp.YOUR_PROVIDER.com"
SMTP_PORT="587"
SMTP_SECURE="false"
SMTP_USER="your-smtp-username"
SMTP_PASS="your-smtp-password"
EMAIL_FROM="SaleX <no-reply@YOUR_DOMAIN.com>"

Option B — admin panel

Admin → Settings → Email/Integrations: same values, saved to the database, no restart needed.

Deliverability essentials

Testing all three

  1. Visit https://YOUR_DOMAIN.com — padlock on, no certificate warnings.
  2. Use “Forgot password” with your admin email — the reset email should arrive within a minute (check spam if not).
  3. Place a test order — the confirmation email arrives and all its links open on your HTTPS domain.

✓ Success: all three pass. Your marketplace is production-ready.