From f0fef152e94ffd50059ae335d266452019336644 Mon Sep 17 00:00:00 2001 From: thecmdradama <44428944+thecmdradama@users.noreply.github.com> Date: Sat, 30 Jan 2021 08:46:43 +0800 Subject: [PATCH 1/3] Update faq.rst New SFTP Question --- source/faq.rst | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/source/faq.rst b/source/faq.rst index 048f7df..825fb69 100644 --- a/source/faq.rst +++ b/source/faq.rst @@ -96,3 +96,48 @@ To: } } +Q: How do I change the SFTP Port? +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +In the ``config.json`` file, you need to change ``daemon.sftp.host`` to the port you require. Default is:``"host": "0.0.0.0:5657"``. + +.. warning :: + +PEASE NOTE: You cannot use ports 1-1024 as these are reserved and you will not be able to bind PufferPanel to them unless from root. + +i.e. From: +.. code-block:: javascript + + "daemon": { + "auth": { + "url": "https://panel.domain.com/oauth2/token", + "clientId": ".node_2", + "clientSecret": "SECRET" + }, + "data": { + "cache": "/var/lib/pufferpanel/cache", + "servers": "/var/lib/pufferpanel/servers" + }, + "sftp": { + "host": "0.0.0.0:5657" + } + } + +To: + +.. code-block:: javascript + + "daemon": { + "auth": { + "url": "https://panel.domain.com/oauth2/token", + "clientId": ".node_2", + "clientSecret": "SECRET" + }, + "data": { + "cache": "/var/lib/pufferpanel/cache", + "servers": "/var/lib/pufferpanel/servers" + }, + "sftp": { + "host": "0.0.0.0:12000" + } + } From 65fc590444b2464e117c7219fd60e73a18830d6f Mon Sep 17 00:00:00 2001 From: thecmdradama <44428944+thecmdradama@users.noreply.github.com> Date: Sat, 30 Jan 2021 08:53:42 +0800 Subject: [PATCH 2/3] Fix RST Syntax --- source/faq.rst | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source/faq.rst b/source/faq.rst index 825fb69..c75195c 100644 --- a/source/faq.rst +++ b/source/faq.rst @@ -101,11 +101,9 @@ Q: How do I change the SFTP Port? In the ``config.json`` file, you need to change ``daemon.sftp.host`` to the port you require. Default is:``"host": "0.0.0.0:5657"``. -.. warning :: - PEASE NOTE: You cannot use ports 1-1024 as these are reserved and you will not be able to bind PufferPanel to them unless from root. -i.e. From: + .. code-block:: javascript "daemon": { From 1253a430485fcd52207d7c901f7abfdbe6819e03 Mon Sep 17 00:00:00 2001 From: thecmdradama <44428944+thecmdradama@users.noreply.github.com> Date: Sat, 30 Jan 2021 08:58:12 +0800 Subject: [PATCH 3/3] Update faq.rst --- source/faq.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/faq.rst b/source/faq.rst index c75195c..9c5638d 100644 --- a/source/faq.rst +++ b/source/faq.rst @@ -139,3 +139,5 @@ To: "host": "0.0.0.0:12000" } } + +After you have changed the port, restart PufferPanel on the Node. Make sure to update the SFTP Port field in the panel with the new SFTP port for that node.