EtherDream / jsproxy

An online proxy based on ServiceWorker
MIT License
9.32k stars 3.61k forks source link

如何实现多站点搭建在同一服务器上 #268

Open ghost opened 4 years ago

ghost commented 4 years ago

打算把代理和论坛都放在一个服务器上 看网上的教程都说需要安装nginx,但是脚本安装的nginx好像是在jsproxy用户下的 有没有什么方法,让jsproxy使用docker安装的nginx?

非常感谢。

EtherDream commented 4 years ago

这个 nginx 是 OpenResty 的,里面用到了 lua 功能,论坛的 nginx 也是 OpenResty 吗?

如果是的话,把相关的 conf 整合到论坛的 nginx conf 里就可以了。

SangOwen notifications@github.com 于2020年6月1日周一 下午8:40写道:

打算把代理和论坛都放在一个服务器上 看网上的教程都说需要安装nginx,但是脚本安装的nginx好像是在jsproxy用户下的 有没有什么方法,让jsproxy使用docker安装的nginx?

非常感谢。

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/EtherDream/jsproxy/issues/268, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIF5E3BYYGYMEMXULAODF3RUOOVNANCNFSM4NPZFINA .

QChWnd commented 4 years ago

选其中一个Nginx反代另一个就好了。当然首先要把被反代的那个的端口切到非80/444。

ghost commented 4 years ago

简单来说,就是安装 OpenResty --> 安装 jsproxy --> 将 jsproxy 中的 conf 添加到 OpenResty 自带的 Nginx 的 conf 中,是吗?(我是真小白啥也不懂

------------------ Original ------------------ From: "EtherDream"<notifications@github.com>; Date: Fri, Jun 5, 2020 11:03 AM To: "EtherDream/jsproxy"<jsproxy@noreply.github.com>; Cc: " "<2408676231@qq.com>;"Author"<author@noreply.github.com>; Subject: Re: [EtherDream/jsproxy] 如何实现多站点搭建在同一服务器上 (#268)

这个 nginx 是 OpenResty 的,里面用到了 lua 功能,论坛的 nginx 也是 OpenResty 吗?

如果是的话,把相关的 conf 整合到论坛的 nginx conf 里就可以了。

SangOwen <notifications@github.com> 于2020年6月1日周一 下午8:40写道:

> 打算把代理和论坛都放在一个服务器上 看网上的教程都说需要安装nginx,但是脚本安装的nginx好像是在jsproxy用户下的 > 有没有什么方法,让jsproxy使用docker安装的nginx? > > 非常感谢。 > > — > You are receiving this because you are subscribed to this thread. > Reply to this email directly, view it on GitHub > <https://github.com/EtherDream/jsproxy/issues/268&gt;, or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AAIF5E3BYYGYMEMXULAODF3RUOOVNANCNFSM4NPZFINA&gt; > . >

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

fudingyu commented 4 years ago

这个 nginx 是 OpenResty 的,里面用到了 lua 功能,论坛的 nginx 也是 OpenResty 吗? 如果是的话,把相关的 conf 整合到论坛的 nginx conf 里就可以了。 SangOwen notifications@github.com 于2020年6月1日周一 下午8:40写道: 打算把代理和论坛都放在一个服务器上 看网上的教程都说需要安装nginx,但是脚本安装的nginx好像是在jsproxy用户下的 有没有什么方法,让jsproxy使用docker安装的nginx? 非常感谢。 — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#268>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIF5E3BYYGYMEMXULAODF3RUOOVNANCNFSM4NPZFINA .

可以和一个非OpenResty的Nginx装在一起吗???

fudingyu commented 4 years ago

选其中一个Nginx反代另一个就好了。当然首先要把被反代的那个的端口切到非80/444。

反代之后,需要再搞给JSProxy安装一个带OpenResty的Nginx?