cnnblike / discord-lite

124 stars 18 forks source link

请问怎么部署到自己的服务器上呢? #8

Closed XuXiangJun closed 3 years ago

XuXiangJun commented 3 years ago

把 pac 文件内的 proxy 的地址改成自己服务器的地址之后就无法成功

function FindProxyForURL(url, host)
{
    proxy = "PROXY MyHost:9091";
    if (shExpMatch(host, "version.jr.moefantasy.com"))
        return proxy;
    return "DIRECT";
}

不改的话还是可以成功的 问下如果不改 pac 的话最终代理走的还是大佬你的服务器吗?

cnnblike commented 3 years ago

Hi, the following configuration is directly pulled from prod server.

[root@host ~]# cat /etc/systemd/system/discord.service
[Unit]
Description=discord

[Service]
ExecStart=/root/discord-lite/main server
Restart=always
User=root
Group=root
Environment=PATH=/usr/bin:/usr/local/bin
WorkingDirectory=/root/discord-lite
[root@host ~]# cat /root/discord-lite/PACFile/WSGun.pac
function FindProxyForURL(url, host)
{
    proxy = "PROXY discord.cnnblike.com:9090";
    if (shExpMatch(host, "version.jr.moefantasy.com"))
        return proxy;
    if (shExpMatch(host,"version.channel.jr.moefantasy.com"))
        return proxy;
    return "DIRECT";
}
cnnblike commented 3 years ago

Resolving.