/ ‘content/posts/cloud/20200624T220819+0900_retry/index.rst’
This commit is contained in:
parent
ed23a88279
commit
55e4c66387
1 changed files with 18 additions and 18 deletions
|
|
@ -14,15 +14,15 @@ cat /etc/hosts
|
||||||
|
|
||||||
.. code-block:: text
|
.. code-block:: text
|
||||||
|
|
||||||
127.0.0.1 localhost
|
127.0.0.1 localhost
|
||||||
127.0.1.1 yunohost.yunohost.org yunohost
|
127.0.1.1 yunohost.yunohost.org yunohost
|
||||||
|
|
||||||
# The following lines are desirable for IPv6 capable hosts
|
# The following lines are desirable for IPv6 capable hosts
|
||||||
::1 localhost ip6-localhost ip6-loopback
|
::1 localhost ip6-localhost ip6-loopback
|
||||||
ff02::1 ip6-allnodes
|
ff02::1 ip6-allnodes
|
||||||
ff02::2 ip6-allrouters
|
ff02::2 ip6-allrouters
|
||||||
192.168.1.150 nextcloud.local nextcloud
|
192.168.1.150 nextcloud.local nextcloud
|
||||||
192.168.1.110 nextcloudpi.local nextcloudpi
|
192.168.1.110 nextcloudpi.local nextcloudpi
|
||||||
|
|
||||||
cat /etc/nginx/conf.d/nopost.hopto.org.d/proxy.conf
|
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
|
.. code-block:: nginx
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass https://192.168.1.110;
|
proxy_pass https://192.168.1.110;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
|
|
||||||
if ($scheme = http)
|
if ($scheme = http)
|
||||||
{
|
{
|
||||||
rewrite ^ https://$server_name$request_uri? permanent;
|
rewrite ^ https://$server_name$request_uri? permanent;
|
||||||
}
|
}
|
||||||
|
|
||||||
proxy_buffering off;
|
proxy_buffering off;
|
||||||
tcp_nodelay on;
|
tcp_nodelay on;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
*nopost.hopto.org is dedicated only for this proxy server. no other app is using it.*
|
*nopost.hopto.org is dedicated only for this proxy server. no other app is using it.*
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue