From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.1 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 81E251F453 for ; Wed, 7 Nov 2018 23:38:14 +0000 (UTC) From: Eric Wong To: unicorn-public@bogomips.org Subject: [PATCH] doc: update more URLs to use HTTPS and avoid redirects Date: Wed, 7 Nov 2018 23:38:14 +0000 Message-Id: <20181107233814.27489-1-e@80x24.org> List-Id: Latency from redirects is painful, and HTTPS can protect privacy in some cases. --- .olddoc.yml | 2 +- Application_Timeouts | 8 ++++---- Documentation/unicorn.1.txt | 2 +- Documentation/unicorn_rails.1.txt | 2 +- LICENSE | 4 ++-- Links | 12 ++++++------ README | 8 ++++---- Sandbox | 4 ++-- examples/logrotate.conf | 2 +- examples/nginx.conf | 5 +++-- lib/unicorn/configurator.rb | 2 +- lib/unicorn/http_request.rb | 2 +- lib/unicorn/http_server.rb | 2 +- lib/unicorn/util.rb | 2 +- t/README | 8 ++++---- 15 files changed, 33 insertions(+), 32 deletions(-) diff --git a/.olddoc.yml b/.olddoc.yml index cacc0ab..d2d340f 100644 --- a/.olddoc.yml +++ b/.olddoc.yml @@ -1,6 +1,6 @@ --- cgit_url: https://bogomips.org/unicorn.git -git_url: git://bogomips.org/unicorn.git +git_url: https://bogomips.org/unicorn.git rdoc_url: https://bogomips.org/unicorn/ ml_url: https://bogomips.org/unicorn-public/ merge_html: diff --git a/Application_Timeouts b/Application_Timeouts index 561a1cc..4dcd954 100644 --- a/Application_Timeouts +++ b/Application_Timeouts @@ -23,10 +23,10 @@ Most database adapters allow configurable timeouts. Net::HTTP and Net::SMTP in the Ruby standard library allow configurable timeouts. -Even for things as fast as {memcached}[http://memcached.org/], -{dalli}[http://rubygems.org/gems/dalli], -{memcached}[http://rubygems.org/gems/memcached] and -{memcache-client}[http://rubygems.org/gems/memcache-client] RubyGems all +Even for things as fast as {memcached}[https://memcached.org/], +{dalli}[https://rubygems.org/gems/dalli], +{memcached}[https://rubygems.org/gems/memcached] and +{memcache-client}[https://rubygems.org/gems/memcache-client] RubyGems all offer configurable timeouts. Consult the relevant documentation for the libraries you use on diff --git a/Documentation/unicorn.1.txt b/Documentation/unicorn.1.txt index e692078..da7281d 100644 --- a/Documentation/unicorn.1.txt +++ b/Documentation/unicorn.1.txt @@ -182,6 +182,6 @@ the unicorn config file. * [Rackup HowTo][3] [1]: https://bogomips.org/unicorn/ -[2]: http://www.rubydoc.info/github/rack/rack/ +[2]: https://www.rubydoc.info/github/rack/rack/ [3]: https://github.com/rack/rack/wiki/tutorial-rackup-howto [4]: https://bogomips.org/unicorn/SIGNALS.html diff --git a/Documentation/unicorn_rails.1.txt b/Documentation/unicorn_rails.1.txt index 088e2ff..fb0e60f 100644 --- a/Documentation/unicorn_rails.1.txt +++ b/Documentation/unicorn_rails.1.txt @@ -170,6 +170,6 @@ used by Unicorn. * [Rackup HowTo][3] [1]: https://bogomips.org/unicorn/ -[2]: http://www.rubydoc.info/github/rack/rack/ +[2]: https://www.rubydoc.info/github/rack/rack/ [3]: https://github.com/rack/rack/wiki/tutorial-rackup-howto [4]: https://bogomips.org/unicorn/SIGNALS.html diff --git a/LICENSE b/LICENSE index 5b6458e..e986865 100644 --- a/LICENSE +++ b/LICENSE @@ -8,8 +8,8 @@ any later version. We currently prefer the GPLv3 or later for derivative works, but the GPLv2 is fine. The complete texts of the GPLv2 and GPLv3 are below: -GPLv2 - http://www.gnu.org/licenses/gpl-2.0.txt -GPLv3 - http://www.gnu.org/licenses/gpl-3.0.txt +GPLv2 - https://www.gnu.org/licenses/gpl-2.0.txt +GPLv3 - https://www.gnu.org/licenses/gpl-3.0.txt You may (against our _preference_) also use the Ruby 1.8 license terms which we inherited from the original Mongrel project when we forked it: diff --git a/Links b/Links index 475a6c0..baba9c7 100644 --- a/Links +++ b/Links @@ -10,7 +10,7 @@ The unicorn project is not responsible for the content in these links. Furthermore, the unicorn project has never, does not and will never endorse: * any for-profit entities or services -* any non-{Free Software}[http://www.gnu.org/philosophy/free-sw.html] +* any non-{Free Software}[https://www.gnu.org/philosophy/free-sw.html] The existence of these links does not imply endorsement of any entities or services behind them. @@ -31,25 +31,25 @@ or services behind them. === unicorn is written to work with -* {Rack}[http://rack.github.io/] - a minimal interface between webservers +* {Rack}[https://rack.github.io/] - a minimal interface between webservers supporting Ruby and Ruby frameworks * {Ruby}[https://www.ruby-lang.org/en/] - the programming language of Rack and unicorn -* {nginx}[http://nginx.org/] (Free versions) - +* {nginx}[https://nginx.org/] (Free versions) - the reverse proxy for use with unicorn === Derivatives -* {Green Unicorn}[http://gunicorn.org/] - a Python version of unicorn +* {Green Unicorn}[https://gunicorn.org/] - a Python version of unicorn -* {Starman}[http://search.cpan.org/dist/Starman/] - Plack/PSGI version +* {Starman}[https://metacpan.org/release/Starman/] - Plack/PSGI version of unicorn === Prior Work -* {Mongrel}[http://rubygems.org/gems/mongrel] - the awesome webserver +* {Mongrel}[https://rubygems.org/gems/mongrel] - the awesome webserver unicorn is based on * {david}[https://bogomips.org/david.git] - a tool to explain why you need diff --git a/README b/README index 29e04b4..5e5ccf7 100644 --- a/README +++ b/README @@ -10,7 +10,7 @@ both the the request and response in between unicorn and slow clients. * Designed for Rack, Unix, fast clients, and ease-of-debugging. We cut out everything that is better supported by the operating system, - {nginx}[http://nginx.org/] or {Rack}[http://rack.github.io/]. + {nginx}[https://nginx.org/] or {Rack}[https://rack.github.io/]. * Compatible with Ruby 1.9.3 and later. unicorn 4.x remains supported for Ruby 1.8 users. @@ -77,13 +77,13 @@ You may install it via RubyGems on RubyGems.org: You can get the latest source via git from the following locations (these versions may not be stable): - git://bogomips.org/unicorn.git - git://repo.or.cz/unicorn.git (mirror) + https://bogomips.org/unicorn.git + https://repo.or.cz/unicorn.git (mirror) You may browse the code from the web: * https://bogomips.org/unicorn.git -* http://repo.or.cz/w/unicorn.git (gitweb) +* https://repo.or.cz/w/unicorn.git (gitweb) See the HACKING guide on how to contribute and build prerelease gems from git. diff --git a/Sandbox b/Sandbox index e10b36d..d0f915e 100644 --- a/Sandbox +++ b/Sandbox @@ -3,7 +3,7 @@ Since unicorn includes executables and is usually used to start a Ruby process, there are certain caveats to using it with tools that sandbox RubyGems installations such as -{Bundler}[http://bundler.io/] or +{Bundler}[https://bundler.io/] or {Isolate}[https://github.com/jbarnette/isolate]. == General deployment @@ -66,7 +66,7 @@ before_exec hook as illustrated by https://gist.github.com/534668 Ruby 2.0.0 enforces FD_CLOEXEC on file descriptors by default. unicorn has been prepared for this behavior since unicorn 4.1.0, and bundler needs the "--keep-file-descriptors" option for "bundle exec": -http://bundler.io/man/bundle-exec.1.html +https://bundler.io/man/bundle-exec.1.html == Isolate diff --git a/examples/logrotate.conf b/examples/logrotate.conf index 437f6c6..77a01b5 100644 --- a/examples/logrotate.conf +++ b/examples/logrotate.conf @@ -2,7 +2,7 @@ # /etc/logrotate.d/unicorn_app on my Debian systems # # See the logrotate(8) manpage for more information: -# http://linux.die.net/man/8/logrotate +# https://linux.die.net/man/8/logrotate # # public logrotate-related discussion in our archives: # https://bogomips.org/unicorn-public/?q=logrotate diff --git a/examples/nginx.conf b/examples/nginx.conf index e25712f..b6b69c1 100644 --- a/examples/nginx.conf +++ b/examples/nginx.conf @@ -56,7 +56,8 @@ http { # to configure it all in one place here for static files and also # to disable gzip for clients who don't get gzip/deflate right. # There are other gzip settings that may be needed used to deal with - # bad clients out there, see http://wiki.nginx.org/NginxHttpGzipModule + # bad clients out there, see + # https://nginx.org/en/docs/http/ngx_http_gzip_module.html gzip on; gzip_http_version 1.0; gzip_proxied any; @@ -117,7 +118,7 @@ http { location @app { # an HTTP header important enough to have its own Wikipedia entry: - # http://en.wikipedia.org/wiki/X-Forwarded-For + # https://en.wikipedia.org/wiki/X-Forwarded-For proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; # enable this if you forward HTTPS traffic to unicorn, diff --git a/lib/unicorn/configurator.rb b/lib/unicorn/configurator.rb index d426edf..e8b76f5 100644 --- a/lib/unicorn/configurator.rb +++ b/lib/unicorn/configurator.rb @@ -238,7 +238,7 @@ def before_exec(*args, &block) # server 192.168.0.9:8080 fail_timeout=0; # } # - # See http://nginx.org/en/docs/http/ngx_http_upstream_module.html + # See https://nginx.org/en/docs/http/ngx_http_upstream_module.html # for more details on nginx upstream configuration. def timeout(seconds) set_int(:timeout, seconds, 3) diff --git a/lib/unicorn/http_request.rb b/lib/unicorn/http_request.rb index 8bb884b..bcc1f2d 100644 --- a/lib/unicorn/http_request.rb +++ b/lib/unicorn/http_request.rb @@ -65,7 +65,7 @@ def read(socket) clear e = env - # From http://www.ietf.org/rfc/rfc3875: + # From https://www.ietf.org/rfc/rfc3875: # "Script authors should be aware that the REMOTE_ADDR and # REMOTE_HOST meta-variables (see sections 4.1.8 and 4.1.9) # may not identify the ultimate source of the request. They diff --git a/lib/unicorn/http_server.rb b/lib/unicorn/http_server.rb index 62f6171..5334fa0 100644 --- a/lib/unicorn/http_server.rb +++ b/lib/unicorn/http_server.rb @@ -84,7 +84,7 @@ def initialize(app, options = {}) # * The master process never closes or reinitializes this once # initialized. Signal handlers in the master process will write to # it to wake up the master from IO.select in exactly the same manner - # djb describes in http://cr.yp.to/docs/selfpipe.html + # djb describes in https://cr.yp.to/docs/selfpipe.html # # * The workers immediately close the pipe they inherit. See the # Unicorn::Worker class for the pipe workers use. diff --git a/lib/unicorn/util.rb b/lib/unicorn/util.rb index 501930c..b826de4 100644 --- a/lib/unicorn/util.rb +++ b/lib/unicorn/util.rb @@ -64,7 +64,7 @@ def self.reopen_logs fp.reopen(fp.path, "a") else # We should not need this workaround, Ruby can be fixed: - # http://bugs.ruby-lang.org/issues/9036 + # https://bugs.ruby-lang.org/issues/9036 # MRI will not call call fclose(3) or freopen(3) here # since there's no associated std{in,out,err} FILE * pointer # This should atomically use dup3(2) (or dup2(2)) syscall diff --git a/t/README b/t/README index bcaf3ce..0d9b697 100644 --- a/t/README +++ b/t/README @@ -10,17 +10,17 @@ comfortable writing integration tests with. == Requirements -* {Ruby 1.9.3+}[https://www.ruby-lang.org/] (duh!) -* {GNU make}[http://www.gnu.org/software/make/] +* {Ruby 1.9.3+}[https://www.ruby-lang.org/en/] (duh!) +* {GNU make}[https://www.gnu.org/software/make/] * {socat}[http://www.dest-unreach.org/socat/] -* {curl}[http://curl.haxx.se/] +* {curl}[https://curl.haxx.se/] * standard UNIX shell utilities (Bourne sh, awk, sed, grep, ...) We do not use bashisms or any non-portable, non-POSIX constructs in our shell code. We use the "pipefail" option if available and mainly test with {ksh}[http://kornshell.com/], but occasionally with {dash}[http://gondor.apana.org.au/~herbert/dash/] and -{bash}[http://www.gnu.org/software/bash/], too. +{bash}[https://www.gnu.org/software/bash/], too. == Running Tests -- EW