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:
| package main | |
| import ( | |
| "log" | |
| "syscall" | |
| "unsafe" | |
| "golang.org/x/sys/windows" | |
| ) |
| package ddns | |
| import ( | |
| "log" | |
| "net" | |
| "sync" | |
| ) | |
| var ( | |
| dnsLock = &sync.Mutex{} |
Dockerized: V2ray + WebSocket + TLS + Web
also see: https://toutyrater.github.io/advanced/wss_and_web.html
Server side sontents:
Client side contents:
These rules are adopted from the AngularJS commit conventions.
| redis-cli EVAL "$(cat hello.lua)" 0 |
| <?php | |
| // all default values | |
| MongoSessionPersistence::create() | |
| ->connect() | |
| ->register(); | |
| // connect to concrete server/db | |
| MongoSessionPersistence::create() | |
| ->connect('mongodb://mongo_server:27017', 'databaseName') | |
| ->useLifeTime(60*60) // lifetime=1 hour |
| #!/bin/bash | |
| usage () | |
| { | |
| cat <<UsageHERE | |
| boot2docker-fwd -- Helper function to quickly manage port forwards between the boot2docker-vm and the host | |
| Usage: boot2docker-fwd [ -n RULE_NAME ] [ -h HOST_PORT ] [ -p {tcp|udp} ] [ -i HOST_IP ] GUEST_PORT | |
| or boot2docker-fwd -d RULE_NAME | |
| or boot2docker-fwd -l | |
| or boot2docker-fwd -A |