From 55e4c663876c4b6a77b932f057fe75dcbce24886 Mon Sep 17 00:00:00 2001 From: Dooho Yi Date: Wed, 24 Jun 2020 22:53:58 +0900 Subject: [PATCH] =?UTF-8?q?/=20=E2=80=98content/posts/cloud/20200624T22081?= =?UTF-8?q?9+0900=5Fretry/index.rst=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../20200624T220819+0900_retry/index.rst | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/content/posts/cloud/20200624T220819+0900_retry/index.rst b/content/posts/cloud/20200624T220819+0900_retry/index.rst index 509802d..b4657bf 100644 --- a/content/posts/cloud/20200624T220819+0900_retry/index.rst +++ b/content/posts/cloud/20200624T220819+0900_retry/index.rst @@ -14,15 +14,15 @@ cat /etc/hosts .. code-block:: text - 127.0.0.1 localhost - 127.0.1.1 yunohost.yunohost.org yunohost + 127.0.0.1 localhost + 127.0.1.1 yunohost.yunohost.org yunohost - # The following lines are desirable for IPv6 capable hosts - ::1 localhost ip6-localhost ip6-loopback - ff02::1 ip6-allnodes - ff02::2 ip6-allrouters - 192.168.1.150 nextcloud.local nextcloud - 192.168.1.110 nextcloudpi.local nextcloudpi + # The following lines are desirable for IPv6 capable hosts + ::1 localhost ip6-localhost ip6-loopback + ff02::1 ip6-allnodes + ff02::2 ip6-allrouters + 192.168.1.150 nextcloud.local nextcloud + 192.168.1.110 nextcloudpi.local nextcloudpi cat /etc/nginx/conf.d/nopost.hopto.org.d/proxy.conf @@ -30,18 +30,18 @@ cat /etc/nginx/conf.d/nopost.hopto.org.d/proxy.conf .. code-block:: nginx -location / { - proxy_pass https://192.168.1.110; - proxy_set_header Host $host; + location / { + proxy_pass https://192.168.1.110; + proxy_set_header Host $host; - if ($scheme = http) - { - rewrite ^ https://$server_name$request_uri? permanent; - } + if ($scheme = http) + { + rewrite ^ https://$server_name$request_uri? permanent; + } - proxy_buffering off; - tcp_nodelay on; -} + proxy_buffering off; + tcp_nodelay on; + } *nopost.hopto.org is dedicated only for this proxy server. no other app is using it.*