GithubHelp home page GithubHelp logo

支持域名or签署ssl about inexistence HOT 8 OPEN

aniverse avatar aniverse commented on August 21, 2024
支持域名or签署ssl

from inexistence.

Comments (8)

Rhilip avatar Rhilip commented on August 21, 2024

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.

from inexistence.

mikezhuo1022 avatar mikezhuo1022 commented on August 21, 2024

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.

from inexistence.

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

from inexistence.

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

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

Thanks again ;)

from inexistence.

Aniverse avatar Aniverse commented on August 21, 2024

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

from inexistence.

mikezhuo1022 avatar mikezhuo1022 commented on August 21, 2024

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

from inexistence.

ff522 avatar ff522 commented on August 21, 2024

很简单啊 ,使用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证书替换成你自己申请的) (也请做好备份),

from inexistence.

Aniverse avatar Aniverse commented on August 21, 2024

很简单啊 ,使用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 的用户——很多人压根就没有域名……

from inexistence.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.