Skip to content

Latest commit

 

History

History
31 lines (29 loc) · 657 Bytes

config.md

File metadata and controls

31 lines (29 loc) · 657 Bytes

配置

config.ts

查看config.ts文件.

Proxy

interface Proxy {
    domain: string; // 域名
    url: string; // 网址
    enable: boolean; // 开启
    template?: Template; // 模板
}

示例

import type {Proxy} from './util/model';
import Github from './template/github';

export let PORT = 377; // 端口

export let PROXY_CODE_SECRET = 'Easy-Reverse-Proxy'; // 代理码密钥
// 代理
export let PROXYS: Proxy[] = [
    {
        domain: "www.example.com",
        url: "https://github.com/",
        enable: true,
        template: Github
    }
];

说明: www.example.com 代理 https://github.com/.