V2-UI V2Ray User Management Panel
https://www.youtube.com/watch?v=-hyeCe3w4-s
You will need a VPS and a domain name that points to that VPS.
Start by installing Nginx on your VPS:
apt install nginx
Edit the Nginx default site configuration file:
vi /etc/nginx/sites-available/default
Insert your real server_name. Write the file to disk and quit the editor. Restart Nginx:
systemctl restart nginx
Install an SSL certificate as explained on https://certbot.eff.org
Download and run the V2-UI installation script:
apt install curl
bash <(curl -Ls https://blog.sprov.xyz/v2-ui.sh)
Install the Sqlite3 shell for Sqlite:
apt install sqlite3
Invoke Sqlite3 for the V2-UI database:
sqlite3 /etc/v2-ui/v2-ui.db
Set the value of the base path equal to /v2-ui (leading slash but no trailing slash):
update setting set value="/v2-ui" where key="base_path";
Do Ctrl+d to exit from Sqlite3.
Restart the V2-UI panel:
v2-ui restart
You should see a message v2-ui 重启成功 (which means v2-ui restarted successfully).
Edit the Nginx default site configuration file:
vi /etc/nginx/sites-available/default
Insert a location block proxying /v2-ui to V2-UI, which is listening on port 65432:
location /v2-ui {
proxy_pass http://127.0.0.1:65432;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
Write the file to disk and quit the editor.
Test the syntax of your Nginx configuration:
nginx -t
If the syntax check is successful, restart Nginx:
systemctl restart nginx
Now visit your server in a browser, e.g. if your domain name is sigvids.ml it would be:
https://www.sigvids.ml/v2-ui
Both the user id and the password default to admin.
Change the user id and the password.
Restart the V2-UI panel:
v2-ui restart
Now you can add accounts.
You will need a VPS and a domain name that points to that VPS.
Start by installing Nginx on your VPS:
apt install nginx
Edit the Nginx default site configuration file:
vi /etc/nginx/sites-available/default
Insert your real server_name. Write the file to disk and quit the editor. Restart Nginx:
systemctl restart nginx
Install an SSL certificate as explained on https://certbot.eff.org
Download and run the V2-UI installation script:
apt install curl
bash <(curl -Ls https://blog.sprov.xyz/v2-ui.sh)
Install the Sqlite3 shell for Sqlite:
apt install sqlite3
Invoke Sqlite3 for the V2-UI database:
sqlite3 /etc/v2-ui/v2-ui.db
Set the value of the base path equal to /v2-ui (leading slash but no trailing slash):
update setting set value="/v2-ui" where key="base_path";
Do Ctrl+d to exit from Sqlite3.
Restart the V2-UI panel:
v2-ui restart
You should see a message v2-ui 重启成功 (which means v2-ui restarted successfully).
Edit the Nginx default site configuration file:
vi /etc/nginx/sites-available/default
Insert a location block proxying /v2-ui to V2-UI, which is listening on port 65432:
location /v2-ui {
proxy_pass http://127.0.0.1:65432;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
Write the file to disk and quit the editor.
Test the syntax of your Nginx configuration:
nginx -t
If the syntax check is successful, restart Nginx:
systemctl restart nginx
Now visit your server in a browser, e.g. if your domain name is sigvids.ml it would be:
https://www.sigvids.ml/v2-ui
Both the user id and the password default to admin.
Change the user id and the password.
Restart the V2-UI panel:
v2-ui restart
Now you can add accounts.
ReplyDeleteThanks alot. I was searching about how to add many servers under one link, and which command can use to limit devices per user