From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 2893F1F61D for ; Mon, 24 Feb 2020 07:33:29 +0000 (UTC) From: Eric Wong 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 Message-Id: <20200224073328.16230-4-e@yhbt.net> In-Reply-To: <20200224073328.16230-1-e@yhbt.net> References: <20200224073328.16230-1-e@yhbt.net> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable List-Id: 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=0D -# to public-inbox-httpd or to a standalone PSGI/Plack server.=0D -# The daemon is assumed to be running locally on port 8001.=0D -# Adjust ssl certificate paths if you use any, or remove=0D -# the ssl configuration directives if you don't.=0D -server {=0D - server_name _;=0D - listen 80;=0D -=0D - access_log /var/log/nginx/public-inbox-httpd_access.log;=0D - error_log /var/log/nginx/public-inbox-httpd_error.log;=0D -=0D - location ~* ^/(.*)$ {=0D - proxy_set_header HOST $host;=0D - proxy_set_header X-Real-IP $remote_addr;=0D - proxy_set_header X-Forwarded-Proto $scheme;=0D - proxy_pass http://127.0.0.1:8001$request_uri;=0D - }=0D -=0D - listen 443 ssl;=0D - ssl_certificate /path/to/certificate.pem;=0D - ssl_certificate_key /path/to/certificate_key.pem;=0D -}=0D -=0D +# 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; +} +