* [PATCH 3/3] examples/nginx_proxy: convert CRLF to LF
2020-02-24 7:33 7% [PATCH 0/3] avoid redundant CRLF handling Eric Wong
@ 2020-02-24 7:33 6% ` Eric Wong
0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2020-02-24 7:33 UTC (permalink / raw)
To: meta
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;
+}
+
^ permalink raw reply related [relevance 6%]
* [PATCH 0/3] avoid redundant CRLF handling
@ 2020-02-24 7:33 7% Eric Wong
2020-02-24 7:33 6% ` [PATCH 3/3] examples/nginx_proxy: convert CRLF to LF Eric Wong
0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2020-02-24 7:33 UTC (permalink / raw)
To: meta
Redundant ops waste cycles and make the code more difficult to
follow. And 3/3 is an overdue cleanup which can also serve as
an impromptu test for solver...
Eric Wong (3):
hval: ascii_html: drop CRLF => LF conversion
viewdiff: remove optional CR handling
examples/nginx_proxy: convert CRLF to LF
examples/nginx_proxy | 48 ++++++++++++++++++-------------------
lib/PublicInbox/Hval.pm | 1 -
lib/PublicInbox/ViewDiff.pm | 11 +++++----
lib/PublicInbox/ViewVCS.pm | 2 +-
t/plack.t | 27 +++++++++++++++++++++
5 files changed, 58 insertions(+), 31 deletions(-)
^ permalink raw reply [relevance 7%]
Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2020-02-24 7:33 7% [PATCH 0/3] avoid redundant CRLF handling Eric Wong
2020-02-24 7:33 6% ` [PATCH 3/3] examples/nginx_proxy: convert CRLF to LF Eric Wong
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).