Server config generator: Xray and sing-box for VLESS, Trojan, Hysteria2

Pick a protocol, type the server's address and get a ready config.json for Xray or sing-box, the client's link with a QR code, and the commands to check it. The configs are the ones Veli's own server installs: VLESS and Trojan over Reality and Shadowsocks 2022 on Xray, Hysteria2 and TUIC on sing-box with a self-signed certificate pinned in the link. Keys, passwords and the certificate are made in your browser.

Runs in your browser, nothing is sent

Settings

VLESS with Reality and Vision on Xray: to the network it looks like a visit to the mask site. The usual choice where VPNs are filtered.

Result

Type the server's address and the name, and the files appear here

Everything is worked out in your browser: keys and addresses are not sent anywhere.

Reference

What runs where

The same values the generator writes: the program on the server, the transport to open in the firewall, the port it suggests and the config's place.

ProtocolProgramTransportPortConfig file
VLESS RealityXraytcp443/usr/local/etc/xray/config.json
Trojan RealityXraytcp443/usr/local/etc/xray/config.json
Shadowsocks 2022Xraytcp + udp28388/usr/local/etc/xray/config.json
Hysteria2sing-boxudp443/etc/sing-box/config.json
TUICsing-boxudp8443/etc/sing-box/config.json

FAQ

Is it safe to make server keys on a website?

Keys, passwords and the certificate are made by your browser and don't leave the page. For a production server you can just as well make them on the server: the formats are the usual ones, as xray x25519 and sing-box generate print.

Which protocol should I pick?

Where VPNs are filtered, VLESS or Trojan with Reality: to the network they look like visits to the mask site. On long or lossy lines, Hysteria2 or TUIC over UDP, if the network lets UDP through. Shadowsocks 2022 is the simplest, for networks that don't filter.

How do I install Xray or sing-box on the server?

Xray with its official install script, sing-box from its package; then put config.json in place and run the commands from the third tab. Or let Veli do all of it: Add → “Your own server” installs the protocol over SSH and adds the profile by itself.

Why is the certificate self-signed?

A certificate from a CA needs a domain. With a self-signed one and its fingerprint in the link (pinSHA256), the client still knows it is talking to your server. Veli's own server does the same.

Can several people use one server?

Yes: add entries to clients (Xray) or users (sing-box), each with its own UUID or password, and give everyone their own link. Then one person's link can be taken away without touching the others.