Giter Site home page Giter Site logo

trojan's Introduction

trojan's People

Contributors

kenzok8 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

trojan's Issues

证书签发失败。请问如何解决?谢谢

使用

  1. 安装trojan-go + nginx +tls
    或者
  2. 安装trojan-go + caddy +tls
    都会出现以下问题。请问如何解决?谢谢

[Sat 26 Jun 2021 07:29:18 PM CST] acme.sh is using ZeroSSL as default CA now.
[Sat 26 Jun 2021 07:29:18 PM CST] Please update your account with an email address first.
[Sat 26 Jun 2021 07:29:18 PM CST] acme.sh --register-account -m [email protected]
[Sat 26 Jun 2021 07:29:18 PM CST] See: https://github.com/acmesh-official/acme.sh/wiki/ZeroSSL.com-CA
[Sat 26 Jun 2021 07:29:18 PM CST] Please add '--debug' or '--log' to check more details.
[Sat 26 Jun 2021 07:29:18 PM CST] See: https://github.com/acmesh-official/acme.sh/wiki/How-to-debug-acme.sh
[错误] TLS 证书生成失败

建议Trojan一键脚本增加80跳转443

http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
#tcp_nopush on;
keepalive_timeout 120;
client_max_body_size 20m;
#gzip on;
server {
listen 80;
server_name $your_domain;
root /usr/share/nginx/html;
index index.php index.html index.htm;
}
}
改为
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
#tcp_nopush on;
keepalive_timeout 120;
client_max_body_size 20m;
#gzip on;
server {
listen 127.0.0.1:80;
server_name $your_domain;
root /usr/share/nginx/html;
index index.php index.html index.htm;

location ~ .php$ { #支持php

root /www;

#try_files $uri =404;
#fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
#fastcgi_index index.php;

fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

include fastcgi_params;

}

}
server {
    listen 0.0.0.0:80;
    server_name  $your_domain;
    return 301 https://$your_domain$request_uri;     
}

}

本来不想说的,希望优化nginx安装

你这个脚本是我见过安装准备插件最全的脚本,没有之一,这点我倒是没啥
关键是您这个nginx安装编译时间也太久了,半小时左右,希望后续版本能够优化一下,还是谢谢作者。

atrandys 脚本伪装站加入 https 重定向

修改 nginx 配置文件

server {
        listen  127.0.0.1:80;
        server_name  $your_domain;
        root /usr/share/nginx/html;
        index index.php index.html index.htm;
    }

server {
        listen  0.0.0.0:80;
        listen  [::]:80;
        server_name  _;
        return  301 https://$your_domain\$request_uri;
    }

err ssl protocol error

装好之后,用clash可以ping通,但是访问网页一直报这个错,err ssl protocol error, 是证书的问题吗?

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.