Skip to content

update faq.rst to add how to change ports (web + sftp) #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: 2.x
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 71 additions & 0 deletions source/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,74 @@ 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

for more information refer config.go file in github

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_PORT"
}
}
}