Dockerized: V2ray + WebSocket + TLS + Web
also see: https://toutyrater.github.io/advanced/wss_and_web.html
Server side sontents:
- Caddyfile
- config.json
- docker-compose.yml
Client side contents:
#!/bin/bash | |
# Create DMG Disk with Terminal | |
hdiutil create -o /tmp/mojave -size 7900m -volname mojave -layout SPUD -fs HFS+J | |
# Mount DMG Disk to your macOS | |
hdiutil attach /tmp/mojave.dmg -noverify -mountpoint /Volumes/mojave | |
# Create macOS Mojave Installer | |
sudo /Applications/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia --volume /Volumes/mojave --nointeraction |
package main | |
import ( | |
"log" | |
"syscall" | |
"unsafe" | |
"golang.org/x/sys/windows" | |
) |
package ddns | |
import ( | |
"log" | |
"net" | |
"sync" | |
) | |
var ( | |
dnsLock = &sync.Mutex{} |
function download() { | |
let token = ''; | |
let data = {id: id}; | |
new Promise((resolve, reject) => { | |
axios({ | |
url: `/`, | |
method: 'POST', | |
headers: {'X-USER-TOKEN': token}, // custom token | |
data: data, // json object | |
responseType: 'blob', // important! |
Dockerized: V2ray + WebSocket + TLS + Web
also see: https://toutyrater.github.io/advanced/wss_and_web.html
Server side sontents:
Client side contents:
package main | |
import ( | |
"fmt" | |
"log" | |
"runtime" | |
"strconv" | |
"strings" | |
"sync" | |
"time" |
package common | |
import ( | |
"fmt" | |
"time" | |
) | |
// Timestamp 自定义时间戳类型,支持Mysql的TIMESTAMP,DATETIME,DATE类型 | |
type Timestamp int64 |
package model | |
import ( | |
"strings" | |
uuid "github.com/satori/go.uuid" | |
) | |
// BaseUUID auto gen uuid xorm base model | |
type BaseUUID struct { |
These rules are adopted from the AngularJS commit conventions.
redis-cli EVAL "$(cat hello.lua)" 0 |