Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支持域名or签署ssl #13

Open
mikezhuo1022 opened this issue Jul 31, 2018 · 8 comments
Open

支持域名or签署ssl #13

mikezhuo1022 opened this issue Jul 31, 2018 · 8 comments

Comments

@mikezhuo1022
Copy link

mikezhuo1022 commented Jul 31, 2018

跟quickbox之类一样,脚本自签的版本是不安全的,RUT的stream功能就实现不了了吧,我用vlc是打不开的。签署安全证书需要建站环境,bt和appnode之类用惯了的几个可视面板装了建站环境后好像用这个脚本都不能编译rt,应该是nginx or achache 配置有问题,我用过一个centos的一键脚本也是同样问题,不知道怎么改面板的nginx的参数来配适rt...

纯净系统下是没问题的,但有时候抽风卡很久,我是发现先单独安装rt再进mingling面板安装其他软件比较稳, 但只要装建站环境,php的achache就会占用80端口无法安装rt,无限时间卡在Installing required packages进程...kvm和独服上我都测试过,能有解决方案吗...

另外,其实脚本里的h5ai可以考虑用dplayer的修改版,增加倍速播放功能,更适合看剧(有些节奏拖沓的)。

除了发issue找不到你的联系方式了...

@Rhilip
Copy link
Contributor

Rhilip commented Jul 31, 2018

This repo use nginx as it's web server, so when you install Apache at first and then use package manage to install nginx, it will fail due to reason - port 80.
Not everyone who use this script has a domain to use, and even QuickBox is only provite a script to change from ip to domain.
Anyway, Maybe you should provite an repo address for the h5ai with dplayer.


At this moment,

  1. To support domain, what you should do is only to update your DNS setting, and use domain to visit. No other config need to change.
  2. To sign a vaild ssl certificate, It's best to use certbot to automatically config your nginx setting.

@mikezhuo1022
Copy link
Author

mikezhuo1022 commented Jul 31, 2018

In website control panel i installed, i chose nginx+php as my default web environment, Achache was not installed, then I searched lots of sources for rutorrent (port 80 error), a saying expressed me a lot, Achache is a default user for running PHP, I've no idea wether that's true or not, i m not a coder :(

So i tried many ways to disable the process which is using port 80, even killall -9 httpd, all of them seem not work.

I knew maybe most of people who using this script do not have a domain, it's only a suggestion. QuickBox? somehow, for me, it's good, but cons, it's kind of over-included...

h5ai: 冻猫(a user in hostloc forum) re-coded (maybe just add? idk code) DPlayer into h5ai, the original post link:http://www.hostloc.com/thread-438265-1-1.html, i searched "h5ai dplayer" on github, someone have uploaded it on git. The most enjoyable change is dplayer enabled multiple-time video playing. It's easy to work, just overwrite the h5ai folder w/ this doc.

For your suggestion, Thank you alot, it offer me new thinkings about my problem. Didn't recall cerbot b4, i'll try it.

I'll make a update if i find a way out.

@Aniverse
Copy link
Owner

  1. 不怕你们笑话,各类面板我都没用过,建站什么的我也从来没弄过,我只是个喜欢捣鼓的刷子,对代码、Linux 什么的一窍不通,能写出这个脚本主要也就是四处复制粘贴以及谷歌百度。此外考虑到这个项目基本上也没有外国人看,我英语也算不上好,就不用英文回复了(手动捂脸)
  2. 你说的这个冲突的问题我也不知道怎么解决。以后我是打算自己写 rtorrent + rutorrent 的安装,不再使用 rtinst,到时候 ngnix 会作为一个可选项目而不是要安装 rt 就必须装。不过看我现在社畜的样子,这个什么时候会做好就不好说了……
  3. 我也觉得用这个脚本的人大多数都没有域名。ssl 我之前也就用 QuickBox 带的脚本搞过,这阵子在 GitHub 上搜到了 acme.sh,感觉用起来很方便
    (刚看了下 certbot 也很方便,可能我之前搜索姿势有问题搜错了东西)
  4. h5ai w/ dplayer 这个我有空再试试。变速播放也是个我看视频必用的功能,不过我一般用油猴脚本来实现……
  5. 这段话大概写完 2 个月了一直没回复,那时候我写的就是有空再看看,然而。。。。

@mikezhuo1022
Copy link
Author

mikezhuo1022 commented Oct 18, 2018

  1. 这还是很便利的一键脚本,估计想用的还是挺多的,要是知道的人多,我是巧合之下看到的;我也是乱倒腾的菜鸡。。用英文是因为不知道你这个项目的受众都有哪些啊,再一个出于尊重git社区文化,不管有没有外国人看。
  2. 冲突的问题,我摸索了一下,好像可以通过端口映射解决,然而我菜鸡不会弄,倒腾了几天就放弃了。rt+rut是必须需要ngnix or apache支持的,我搜了没找到相关指导教程or用了也没成功(现在网上好多都是网站采集器自动发布的)。。看你想花多少时间去弄。。
  3. 域名问题,其实后来自己想了想,问题也不大,开始走了死胡同。可以通过网页重定向来解决。所以主要还是80 or 443端口的问题,;(
    QB就算了吧,强大是强大,但真的太臃肿了。我之前拿一个4h8c8g的杜甫试过,家人的体验有点不佳,起码对于国内网络而言。而我倒腾这个的初衷有部分是为了家人的方便,所以就放弃了。
    (acme和certbot倒是不错)
  4. h5ai的问题,如果你自己也有这个需求,考虑提升一下优先级呀?虽然我自己解决了这个问题,其实就是把h5ai的有几个文件替换一下就行了。 dplayer版的h5ai比油猴的灵活性更强。

没关系,对于我来说,花了时间写这个脚本就了不起,先忙自己更重要的事。

Thanks again ;)

@Aniverse
Copy link
Owner

Aniverse commented Oct 18, 2018

【2】作为可选项目是因为可能有的人已经自己装了 ngnix 或者 apache 嘛……
【4】那这段时间测试下好了

@mikezhuo1022
Copy link
Author

for 2: 是的,我当时也很想解决这个冲突问题,但是耗费了大量时间没搞定就放弃了。kvm可以很简单的通过docker解决,但是openvz就蛋疼了,而我有俩个大盘鸡是openvz框架 ;( 难受

@ff522
Copy link

ff522 commented Nov 14, 2019

很简单啊 ,使用acme.sh脚本先申请好ssl证书文件,然后自己替换自签的证书就好(当然首先你得有一个域名并且指向了服务器,怎么用acme.sh申请证书自己查,网上教程很多)
ssl证书文件默认在
ssl_certificate /etc/ssl/ruweb.crt;
ssl_certificate_key /etc/ssl/private/ruweb.key;
替换掉这两个文件就可(做好备份),
或者直接改nginx配置文件(配置文件是/etc/nginx/sites-available的default文件,把里面的ssl证书替换成你自己申请的) (也请做好备份),

@Aniverse
Copy link
Owner

很简单啊 ,使用acme.sh脚本先申请好ssl证书文件,然后自己替换自签的证书就好(当然首先你得有一个域名并且指向了服务器,怎么用acme.sh申请证书自己查,网上教程很多)
ssl证书文件默认在
ssl_certificate /etc/ssl/ruweb.crt;
ssl_certificate_key /etc/ssl/private/ruweb.key;
替换掉这两个文件就可(做好备份),
或者直接改nginx配置文件(配置文件是/etc/nginx/sites-available的default文件,把里面的ssl证书替换成你自己申请的) (也请做好备份),

curl https://get.acme.sh | sh && alias acme.sh=~/.acme.sh/acme.sh
my_domain=XXXXX.XXX.XXXXX
acme.sh --issue -d $my_domain --webroot /var/www &&
acme.sh --installcert -d  $my_domain \
        --key-file   /etc/ssl/private/ruweb.key \
        --fullchain-file /etc/ssl/ruweb.crt \
        --reloadcmd  "service nginx force-reload"

我现在是这样子在安装了 rutorrent 的基础上配置 acme.sh

其实这个脚本主要针对纯当做 seedbox 的用户——很多人压根就没有域名……

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants