From ceb9e9911a6c93e3d077dacf25f57d618571de72 Mon Sep 17 00:00:00 2001 From: Randy Date: Tue, 16 Feb 2021 09:06:11 +0530 Subject: [PATCH 1/4] Update faq.rst --- source/faq.rst | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/source/faq.rst b/source/faq.rst index 048f7df..faa0872 100644 --- a/source/faq.rst +++ b/source/faq.rst @@ -96,3 +96,70 @@ To: } } +Q: How do I change the ports that pufferpanel uses ? +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +You need to modify your ``config.json`` to include +``web.host`` is daemon port (8080 by default) which is also the panel port which you want to access it or reverse proxy it via a web server +``daemon.sftp.host`` is the sftp port (5657 by default) which is how you can upload/download files from the server + +I.E change the following from: + +.. code-block:: javascript + + { + "logs": "/var/log/pufferpanel", + "panel": { + "database": { + "dialect": "sqlite3", + "url": "file:/var/lib/pufferpanel/database.db?cache=shared" + }, + "settings": { + "companyName": "YOUR NEW NAME HERE" + }, + "web": { + "files": "/var/www/pufferpanel" + } + }, + "token": { + "private": "private.pem" + }, + "daemon": { + "data": { + "cache": "/var/lib/pufferpanel/cache", + "servers": "/var/lib/pufferpanel/servers" + } + } + } + +To: + +.. code-block:: javascript + + { + "logs": "/var/log/pufferpanel", + "panel": { + "database": { + "dialect": "sqlite3", + "url": "file:/var/lib/pufferpanel/database.db?cache=shared" + }, + "web": { + "files": "/var/www/pufferpanel" + } + }, + "web": { + "host": "YOUR_IP:YOUR_PORT" + } + "token": { + "private": "private.pem" + }, + "daemon": { + "data": { + "cache": "/var/lib/pufferpanel/cache", + "servers": "/var/lib/pufferpanel/servers" + }, + "sftp": { + "host": "YOUR_IP:YOUR_POST" + } + } + } From 34442c2c2d8619a54eab094185d92b033ef38298 Mon Sep 17 00:00:00 2001 From: Randy Date: Tue, 16 Feb 2021 09:18:39 +0530 Subject: [PATCH 2/4] Update faq.rst --- source/faq.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/faq.rst b/source/faq.rst index faa0872..3c89ae2 100644 --- a/source/faq.rst +++ b/source/faq.rst @@ -100,9 +100,13 @@ Q: How do I change the ports that pufferpanel uses ? ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ You need to modify your ``config.json`` to include + ``web.host`` is daemon port (8080 by default) which is also the panel port which you want to access it or reverse proxy it via a web server + ``daemon.sftp.host`` is the sftp port (5657 by default) which is how you can upload/download files from the server +for more information refer config.go file in github + I.E change the following from: .. code-block:: javascript From d0b5c97ff4ac5188ce9c5824f1a0b171def12fe3 Mon Sep 17 00:00:00 2001 From: Randy Date: Tue, 16 Feb 2021 09:19:55 +0530 Subject: [PATCH 3/4] Update faq.rst --- source/faq.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/faq.rst b/source/faq.rst index 3c89ae2..a93be99 100644 --- a/source/faq.rst +++ b/source/faq.rst @@ -153,7 +153,7 @@ To: }, "web": { "host": "YOUR_IP:YOUR_PORT" - } + }, "token": { "private": "private.pem" }, From 90bb4557fa4b1f629646cb6613f185624ef01a82 Mon Sep 17 00:00:00 2001 From: Randy Date: Tue, 16 Feb 2021 09:20:45 +0530 Subject: [PATCH 4/4] Update faq.rst --- source/faq.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/faq.rst b/source/faq.rst index a93be99..2e38ea1 100644 --- a/source/faq.rst +++ b/source/faq.rst @@ -163,7 +163,7 @@ To: "servers": "/var/lib/pufferpanel/servers" }, "sftp": { - "host": "YOUR_IP:YOUR_POST" + "host": "YOUR_IP:YOUR_PORT" } } }