I. xScorts Tech stack
Backend
NodeJS with NestJS framework
MongoDB
Redis
FFMPEG
Nginx with http_auth_module to protect assets
Frontend
ReactJS with NextJS framework
Ant design
II. QA
1. How to configure email?
xScorts provides 2 sections in the Admin settings for email
Email tab
Admin Email
: Email address for who will receive notification from system and contact formSender Email
: Email address for who will send the email in system
SMTP tab
Host
: enter SMTP host Ex.smtp.google.com
Port
: SMTP port Ex. 465Auth User
: SMTP usernameAuth Password
: SMTP passwordSecure Option
: Enable if use port 465
Note:
You can use format “your name”
<email-address>
to admin email and sender email. EgAdmin Email
: "xScorts Admin"<admin@xscorts.info >
Sender Email
: "xScorts Support"<noreply@xscorts.info >
xScorts provides SMTP method for email only, almost services provide SMTP config, please check with your service and common list in our document.
2. How to add Google analytics code?
Go to Admin panel > Settings > System settings > Google Analytics and enter your GA code.
Note: GA code usually is formatted with G-xxxxxxxxxx
3. How to add custom script?
Go to Admin panel > Settings > System settings > Custom. There are 2 section you can enter your custom script
Custom Header Script
: website will render this content in the <head> tagCustom Body Script
: website will render this content before </body> tag
Note:
You can enter your GA script to one of these sections
Make sure you entered valid HTML or Javascript script. Otherwise it might break the system
4. How to update or change style?
xScorts does not provide option to change layout or style in the admin panel. However if you want to custom there are 2 solutions
Change style from source code (Recommended)
Or inspect element in xScorts HTML code and get CSS class name or section then update your style to “Custom header script” section.
5. How to setup xScorts payment gateway?
xScorts just supports CCBill payment gateway for now.
Go to Admin > Settings > System settings > CCbill and enter CCBill information in the form
CCBill webhook URL:
https://[xScorts-v3-api-domain]/payment/ccbill/callhook
(Ex - https://api.xScorts.info/payment/ccbill/callhook)Approval URL (redirect URL after payment success) should be
https://your-xscorts-domain/payment/success
(Ex - https://xscorts.info/payment/success). You can See this field under CCBill sub account > Basic tabDenial URL (redirect URL after payment failure or cancel payment) should be https://your-xscorts-domain (Ex - https://xscorts.info ). You can See this field under CCBill sub account > Basic tab
Note: For other payment gateways please contact us for customization
6. How to add footer menu?
Go to Admin panel > FE Menu. Here you can see the list and create or update existing menu.
xScorts provides only option to change footer menu for now
From system page
: FE will reload custom script file if it is system url. if enable you can select list of static pages tooIs new tab
: open link in a new tab once clicking onTitle
: menu textPath
: link to the page (you can enter full url here if it is not system page)Section
: where we will show the menuOrdering
: Enter sort number of menu item in the list
7. SMTP common list and setup
Sendgrid
Host
: smtp.sendgrid.netPort
: 465 / 587Auth User
: the stringapikey
. This setting is the exact string "apikey" and not the API key itself.Auth Password
: your Sendgrid API key Ex -SG.xxxxx
Note:
Sender email in Email tab must valid with domain you verified in Sendgrid dashboard
Have to verify sender domain in sendgrid dashboard before using https://sendgrid.com/docs/ui/account-and-settings/how-to-set-up-domain-authentication/
More details about Sendgrid SMTP, please read here
Gmail
Host
: smtp.sendgrid.netPort
: 465 / 587Auth User
: Your full email address Ex:youremail@gmail.com
Auth Password
: Your Gmail password
Note:
Sender email in Email tab must be same your gmail address
Please enable less secure option here
M3 service
Host
: m3 host url Ex -v2010004s.m3xs.net
Port
: 587Auth User
: Email username account or M3 FTP master accountAuth Password
: Your email password or M3 FTP master password
Note:
Go to M3 control panel and register your email address, then fill to SMTP form
For Linode user, SMTP restrictions are in place by default for Linodes on accounts created after November 5th 2019. You'll need to configure rDNS for your instance and open a Support ticket confirming CAN-SPAM compliance, and Support should lift the restrictions pretty quickly. Check here for more details