Skip to content

Commit

Permalink
Merge pull request #383 from pavelhoral/fix-ftp-doc
Browse files Browse the repository at this point in the history
Fix FTP/SFTP documentation
  • Loading branch information
Thomas-Smyth authored Oct 6, 2024
2 parents fbef024 + 7999021 commit ef09de7
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 12 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,14 @@ The following section of the configuration contains information about your Squad
"logReaderMode": "tail",
"logDir": "C:/path/to/squad/log/folder",
"ftp": {
"host": "xxx.xxx.xxx.xxx",
"port": 21,
"user": "FTP Username",
"password": "FTP Password"
},
"sftp": {
"host": "xxx.xxx.xxx.xxx",
"port": 21,
"port": 22,
"username": "SFTP Username",
"password": "SFTP Password"
},
Expand All @@ -97,11 +98,10 @@ The following section of the configuration contains information about your Squad
* `queryPort` - The query port of the server.
* `rconPort` - The RCON port of the server.
* `rconPassword` - The RCON password of the server.
* `logReaderMode` - `tail` will read from a local log file. `ftp` will read from a remote log file using the FTP protocol.
* `logReaderMode` - `tail` will read from a local log file, `ftp` will read from a remote log file using the FTP protocol, `sftp` will read from a remote log file using the SFTP protocol.
* `logDir` - The folder where your Squad logs are saved. Most likely will be `C:/servers/squad_server/SquadGame/Saved/Logs`.
* `ftp:port` - The FTP port of the server. Only required for `ftp` `logReaderMode`.
* `ftp:user` - The FTP user of the server. Only required for `ftp` `logReaderMode`.
* `ftp:password` - The FTP password of the server. Only required for `ftp` `logReaderMode`.
* `ftp` - FTP configuration for reading logs remotely.
* `sftp` - SFTP configuration for reading logs remotely.
* `adminLists` - Sources for identifying an admins on the server, either remote or local.

---
Expand Down
3 changes: 2 additions & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@
"logReaderMode": "tail",
"logDir": "C:/path/to/squad/log/folder",
"ftp": {
"host": "xxx.xxx.xxx.xxx",
"port": 21,
"user": "FTP Username",
"password": "FTP Password"
},
"sftp": {
"host": "xxx.xxx.xxx.xxx",
"port": 21,
"port": 22,
"username": "SFTP Username",
"password": "SFTP Password"
},
Expand Down
3 changes: 2 additions & 1 deletion squad-server/templates/config-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@
"logReaderMode": "tail",
"logDir": "C:/path/to/squad/log/folder",
"ftp": {
"host": "xxx.xxx.xxx.xxx",
"port": 21,
"user": "FTP Username",
"password": "FTP Password"
},
"sftp": {
"host": "xxx.xxx.xxx.xxx",
"port": 21,
"port": 22,
"username": "SFTP Username",
"password": "SFTP Password"
},
Expand Down
10 changes: 5 additions & 5 deletions squad-server/templates/readme-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,14 @@ The following section of the configuration contains information about your Squad
"logReaderMode": "tail",
"logDir": "C:/path/to/squad/log/folder",
"ftp": {
"host": "xxx.xxx.xxx.xxx",
"port": 21,
"user": "FTP Username",
"password": "FTP Password"
},
"sftp": {
"host": "xxx.xxx.xxx.xxx",
"port": 21,
"port": 22,
"username": "SFTP Username",
"password": "SFTP Password"
},
Expand All @@ -97,11 +98,10 @@ The following section of the configuration contains information about your Squad
* `queryPort` - The query port of the server.
* `rconPort` - The RCON port of the server.
* `rconPassword` - The RCON password of the server.
* `logReaderMode` - `tail` will read from a local log file. `ftp` will read from a remote log file using the FTP protocol.
* `logReaderMode` - `tail` will read from a local log file, `ftp` will read from a remote log file using the FTP protocol, `sftp` will read from a remote log file using the SFTP protocol.
* `logDir` - The folder where your Squad logs are saved. Most likely will be `C:/servers/squad_server/SquadGame/Saved/Logs`.
* `ftp:port` - The FTP port of the server. Only required for `ftp` `logReaderMode`.
* `ftp:user` - The FTP user of the server. Only required for `ftp` `logReaderMode`.
* `ftp:password` - The FTP password of the server. Only required for `ftp` `logReaderMode`.
* `ftp` - FTP configuration for reading logs remotely. Only required for `ftp` `logReaderMode`.
* `sftp` - SFTP configuration for reading logs remotely. Only required for `sftp` `logReaderMode`.
* `adminLists` - Sources for identifying an admins on the server, either remote or local.

---
Expand Down

0 comments on commit ef09de7

Please sign in to comment.