Skip to content

Instantly share code, notes, and snippets.

Avatar

sailei sailei1

View GitHub Profile
@sailei1
sailei1 / config.json
Created Sep 27, 2019 — forked from tanpengsccd/config.json
v2ray服务端 json 配置 文件
View config.json
{
"log": {
"access": "/var/log/v2ray/access.log",
"error": "/var/log/v2ray/error.log",
"loglevel": "warning"
},
"inbound": { //理论最安全的方式 ws,有条件加上TLS
"port": 20080, //开启的端口,建议实用caddy加上TLS加密
"protocol": "vmess",
@sailei1
sailei1 / axios-interceptors-refresh-token.js
Created Jan 24, 2019 — forked from mkjiau/axios-interceptors-refresh-token.js
Axios interceptors for token refreshing and more than 2 async requests available
View axios-interceptors-refresh-token.js
let isRefreshing = false;
let refreshSubscribers = [];
const instance = axios.create({
baseURL: Config.API_URL,
});
instance.interceptors.response.use(response => {
return response;
}, error => {
You can’t perform that action at this time.