user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
From: Eric Wong <e@yhbt.net>
To: meta@public-inbox.org
Subject: [PATCH 3/3] examples/nginx_proxy: convert CRLF to LF
Date: Mon, 24 Feb 2020 07:33:28 +0000	[thread overview]
Message-ID: <20200224073328.16230-4-e@yhbt.net> (raw)
In-Reply-To: <20200224073328.16230-1-e@yhbt.net>

It was the only file in our tree which had CRLF line endings,
so make it consistent with the rest.
---
 examples/nginx_proxy | 48 ++++++++++++++++++++++----------------------
 1 file changed, 24 insertions(+), 24 deletions(-)

diff --git a/examples/nginx_proxy b/examples/nginx_proxy
index 38e60643..d8d1e6df 100644
--- a/examples/nginx_proxy
+++ b/examples/nginx_proxy
@@ -1,24 +1,24 @@
-# Example NGINX configuration to proxy-pass requests
-# to public-inbox-httpd or to a standalone PSGI/Plack server.
-# The daemon is assumed to be running locally on port 8001.
-# Adjust ssl certificate paths if you use any, or remove
-# the ssl configuration directives if you don't.
-server {
-	server_name _;
-	listen 80;
-
-	access_log /var/log/nginx/public-inbox-httpd_access.log;
-	error_log /var/log/nginx/public-inbox-httpd_error.log;
-
-	location ~* ^/(.*)$ {
-		proxy_set_header    HOST $host;
-		proxy_set_header    X-Real-IP $remote_addr;
-		proxy_set_header    X-Forwarded-Proto $scheme;
-		proxy_pass          http://127.0.0.1:8001$request_uri;
-	}
-
-	listen 443 ssl;
-	ssl_certificate /path/to/certificate.pem;
-	ssl_certificate_key /path/to/certificate_key.pem;
-}
-
+# Example NGINX configuration to proxy-pass requests
+# to public-inbox-httpd or to a standalone PSGI/Plack server.
+# The daemon is assumed to be running locally on port 8001.
+# Adjust ssl certificate paths if you use any, or remove
+# the ssl configuration directives if you don't.
+server {
+	server_name _;
+	listen 80;
+
+	access_log /var/log/nginx/public-inbox-httpd_access.log;
+	error_log /var/log/nginx/public-inbox-httpd_error.log;
+
+	location ~* ^/(.*)$ {
+		proxy_set_header    HOST $host;
+		proxy_set_header    X-Real-IP $remote_addr;
+		proxy_set_header    X-Forwarded-Proto $scheme;
+		proxy_pass          http://127.0.0.1:8001$request_uri;
+	}
+
+	listen 443 ssl;
+	ssl_certificate /path/to/certificate.pem;
+	ssl_certificate_key /path/to/certificate_key.pem;
+}
+

      parent reply	other threads:[~2020-02-24  7:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-24  7:33 [PATCH 0/3] avoid redundant CRLF handling Eric Wong
2020-02-24  7:33 ` [PATCH 1/3] hval: ascii_html: drop CRLF => LF conversion Eric Wong
2020-02-24  7:33 ` [PATCH 2/3] viewdiff: remove optional CR handling Eric Wong
2020-02-24  7:33 ` Eric Wong [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://public-inbox.org/README

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200224073328.16230-4-e@yhbt.net \
    --to=e@yhbt.net \
    --cc=meta@public-inbox.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/public-inbox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).