پنل تحت وب مدیریت V2ray و ساخت کاربر و مدیریت سرور
mkdir x-ui && cd x-ui
docker run -itd --network=host \
-v $PWD/db/:/etc/x-ui/ \
-v $PWD/cert/:/root/cert/ \
| TIMESTAMP(DATE_SUB(CURDATE(),INTERVAL | |
| CASE weekday(CURDATE()) | |
| WHEN 0 THEN 2 | |
| WHEN 1 THEN 3 | |
| WHEN 2 THEN 4 | |
| WHEN 3 THEN 5 | |
| WHEN 4 THEN 6 | |
| WHEN 5 THEN 0 | |
| WHEN 6 THEN 1 | |
| END |
| version: '3.8' | |
| services: | |
| sq: | |
| image: robhaswell/squid-authenticated | |
| restart: always | |
| ports: | |
| - "3128:3128" | |
| environment: | |
| - "SQUID_USERNAME=user" | |
| - "SQUID_PASSWORD=pass..." |
| package main | |
| import ( | |
| "bytes" | |
| "fmt" | |
| "io" | |
| "math" | |
| "net/http" | |
| "os" | |
| "path" |
| #!/bin/bash | |
| # Written by Mahmoud Eskandari @ BoomerangApp - 2024 | |
| # Warning: Backup your innoDB before run! | |
| # ****** Caution ****** | |
| # If you mistakenly swap the source and destination, | |
| # the source database will be deleted. This script will also delete and recreate the destination database. | |
| # Please be careful. | |
| # |