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
- In your domain registrar (Namecheap, GoDaddy, Cloudflare…), open DNS settings.
- Add an A record: host
@, value = your server's IP. - Add another for
www(A record or CNAME to the root). - Wait for propagation (minutes to a few hours). Check with
ping YOUR_DOMAIN.com— it should show your server IP. - Update
APP_URLandNEXT_PUBLIC_SITE_URLin the server's.envtohttps://YOUR_DOMAIN.comand 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
- Gmail personal accounts need an App Password (Google Account → Security → 2-Step Verification → App passwords) — your normal password will fail.
- Transactional services (Resend, SendGrid, Postmark, Brevo…) are more reliable for order emails than raw SMTP; create an account, use their SMTP host/credentials, and verify your domain in their dashboard.
- SPF/DKIM DNS records: your provider gives you TXT records — add them at your registrar or emails land in spam.
- Send from your domain (
no-reply@YOUR_DOMAIN.com), never a free address.
Testing all three
- Visit
https://YOUR_DOMAIN.com— padlock on, no certificate warnings. - Use “Forgot password” with your admin email — the reset email should arrive within a minute (check spam if not).
- 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.